Quantcast
Channel: PeteStilgoe.com » cqwp
Viewing all articles
Browse latest Browse all 10

How to format a date field in a CQWP

$
0
0
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 all articles
Browse latest Browse all 10

Trending Articles