<xsl:value-of select="ddwrt:FormatDateTime(string(ddwrt:Today()),1033,'dd')"/>
Displaying today’s date using XSL and SharePoint
< xsl:value-of select="ddwrt:Today()">
FormatDate(string szDate, long lcid, long formatFlag)
FormatDate(@Today, 1033, @No)
1 : 5/9/2007
3 : Wednesday, May 09, 2007
4 : 9:06 AM
5 : 5/9/2007 9:06 AM
7 : Wednesday, May 09, 2007 9:06 AM
12: 9:06:12 AM
13: 5/9/2007 9:06:12 AM
15: Wednesday, May 09, 2007 9:06:12 AM
< xsl:value-of select="ddwrt:FormatDateTime(string(ddwrt:Today()), 1033,'yyyyMMdd')" > < /xsl:value-of >
Displaying today’s date using XSL and SharePoint
< xsl:value-of select="ddwrt:Today()">
FormatDate(string szDate, long lcid, long formatFlag)
FormatDate(@Today, 1033, @No)
1 : 5/9/2007
3 : Wednesday, May 09, 2007
4 : 9:06 AM
5 : 5/9/2007 9:06 AM
7 : Wednesday, May 09, 2007 9:06 AM
12: 9:06:12 AM
13: 5/9/2007 9:06:12 AM
15: Wednesday, May 09, 2007 9:06:12 AM
< xsl:value-of select="ddwrt:FormatDateTime(string(ddwrt:Today()), 1033,'yyyyMMdd')" > < /xsl:value-of >
XsltListViewWebPart Date Format using DDWRT
<xsl:value-of select="ddwrt:FormatDateTime(string(@Modified), 3081, ‘dd-MMM-yyyy’)" />
SPLocale.LCID property & Regional settings (SharePoint Server 2010)
Australia: 3081
Persian: 1065
<xsl:value-of select="ddwrt:FormatDateTime(string(@Modified), 3081, ‘dd-MMM-yyyy’)" />
SPLocale.LCID property & Regional settings (SharePoint Server 2010)
Australia: 3081
Persian: 1065