Preaching SharePoint

Change modified date format in Sharepoint list

A very different requirenment I came accross where Client wanted to change the format of modified date in the SharePoint list.
We could have used the XSLT approach or just plan HTML\JavaScript to do this. But what we really went for was the easiest and the most reliable way in my view. 

Solution - We can use a Calculated column to modify the Format. The simple formula is
=TEXT(Modified,"d MMM yyyy")

You can add the refrence to this Field in your Layout or designer code as below
<SharePointWebControls:CalculatedField ID="CalculatedField" FieldName="Display Date" runat="server" />

Why did we do that. I know this is not the right soltuion but I managed to convice the client to use this instead because I feel XSLT's are not reliable. Using XSL Link Property has earlier caused me various problems.


0 Respones to "Change modified date format in Sharepoint list"

Post a Comment


Do you want SharePoint 2013 to inherit Metro Style design?

Search This Blog

Return to top of page Copyright © 2010 | Platinum Theme Converted into Blogger Template by HackTutors