Quantcast
Viewing latest article 10
Browse Latest Browse All 10

How to format a date field in a CQWP

To format a date field in a Sharepoint Content Query Webpart (CQWP) you can do the following: 1) Edit your itemstyle.xsl 2) Add a reference to xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" 3) Now you can use the following syntax to format your date xsl:value-of select="ddwrt:FormatDate(@field, 2057, 3)"/> 4) Save your itemstyle.xsl & your date should be formatted

Viewing latest article 10
Browse Latest Browse All 10

Trending Articles