Razor ans XSLT: Show the current year


<umbraco:Macro  runat="server" language="cshtml">@System.DateTime.Now.Year.ToString()</umbraco:Macro>

<xsl:value-of select="umbraco.library:FormatDateTime(umbraco.library:CurrentDate(), 'yyyy')"/>

No comments:

Post a Comment