<xsl:value-of select="ddwrt:FormatDateTime(string(@Created) ,1033 ,'dd-MMM-yyyy')" />
will produce 25-Apr-2009
<xsl:value-of select="ddwrt:FormatDateTime(string(@Created) ,1033 ,'dd-MMMM-yyyy')" />
will produce 25-April-2009
<xsl:value-of select="ddwrt:FormatDateTime(string(@Created) ,1033 ,'dd/MMM/yyyy')" />
will produce the result
25/Apr/2009
Nice Man it help me
ReplyDeletethis will work only if you refer ddwrt namespace.
ReplyDeletexmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"
I can't get this to work for sharepoint online. It works if I put 1 instead of 'MM/dd/YYYY' but not for the custom format.
ReplyDelete