Question

I have created a publishing layout for SP 2010 Publishing site. I have created it based off a page layout publishing content type. One of the field is the standard OOTB Date field. Using SP Designer 2010 to create layout I added the page field to the layout. SO here is the issue. When a user creates a page using this layout they select the date from the standard calendar picker. When the page is saved it displays in the format mm/dd/yy I need to have ot look like April 1, 2011. How can I achieve this?

Was it helpful?

Solution

I had to do something like this a hwile ago.

You'll need to create a calculated column in the content type used by your page. The formula should be something like =TEXT([ArticleDate], "MMMM DD, YYYY") - call your calculated column something like "FormattedArticleDate". Set this column to update lists where it's used.

Then, in SharePoint Designer, you'll want to use EditModePanels to show the ArticleDate field when in Edit Mode, and then your Calculated Column when in Display Mode.

The calculated column will not show in Edit Forms, as it's calculated on the fly when data is added.

HTH

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top