In many projects when using CQWP web parts you need to customize date format. By default, SharePoint gives date with time, but we often need only date. Here is a simple scenario:
- First you need to reference the ddwrt namespace at the top of your <xsl:stylesheet> tag:
- In order to display custom date format you have to use the following code (replace @ArticleStartDate with your column ):
xsl:value-of select="ddwrt:FormatDate(@ArticleStartDate, 2057, 1)"
- Save. Publish. Check results 😉