I have created custom template for CQWP in ItemStyle.
My code for template is:
<xsl:template name="CustomLofbergs" match="Row[@Style='CustomLofbergs']" mode="itemstyle">
<div class="main">
<div class="subDateText">
<div class="subDate">
<div class="day">
13 //I want to display the date here
</div>
<div class="monthyear">
<div class="month">
05 // Display month here
</div>
<div class="year">
1990 // Display year here.
</div>
</div>
</div>
<div class="subText">
<div class="eventTile">
<xsl:variable name="SafeLinkUrl">
<xsl:call-template name="OuterTemplate.GetSafeLink">
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="DisplayTitle">
<xsl:call-template name="OuterTemplate.GetTitle">
<xsl:with-param name="Title" select="@Title"/>
<xsl:with-param name="UrlColumnName" select="'LinkUrl'"/>
</xsl:call-template>
</xsl:variable>
<div class="item link-item">
<xsl:call-template name="OuterTemplate.CallPresenceStatusIconTemplate"/>
<a href="{$SafeLinkUrl}" title="{@LinkToolTip}">
<xsl:if test="$ItemsHaveStreams = 'True'">
<xsl:attribute name="onclick">
<xsl:value-of select="@OnClickForWebRendering"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="$ItemsHaveStreams != 'True' and @OpenInNewWindow = 'True'">
<xsl:attribute name="onclick">
<xsl:value-of disable-output-escaping="yes" select="$OnClickTargetAttribute"/>
</xsl:attribute>
</xsl:if>
<xsl:value-of select="$DisplayTitle"/>
</a>
</div>
</div>
<div class="eventDescription">
<xsl:value-of select="@Description"/>
</div>
</div>
</div>
</div>
</xsl:template>
The template is for displaying events. So, I knew I have to use EventDate field but not having actual idea how to do..??
I used <xsl:value-of select="ddwrt:FormatDateTime(@EventDate,1033,'d')"/>
but not working for me.
What should I do?