TwitterLinkedInBlog

Tuesday, November 8, 2011

CQWP - Date Example

ItemStyle.xsl <xsl:template>

<xsl:value-of select="ddwrt:FormatDateTime(string(@PublicationDate),1033,'MM.dd.yyyy')"></xsl:value-of>

Make sure to include the following in the <xsl:stylesheet> tag:
xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime"

No comments: