How can I format this date
<xsl:value-of select="translate(@Created_x0020_Date,'0;#','')"></xsl:value-of>
to something like this UTC format - "2012-01-13T16:14:21Z"
|
How can I format this date
to something like this UTC format - "2012-01-13T16:14:21Z" |
||||
|
|
|
Probably you're looking for the ddwrt:FormatDateTime function:
Internally, it wraps standard ASP.Net DateTime.ToString method, so for szFormat parameter you can use either Standard Data Format Strings or Custom Data Format Strings. It seems that standard sortable format should do for you:
Thus, your code will look something like this:
Then, you can append "Z" to the end of the resulting string (or you can just use custom format). |
||||
|
|