Various Umbraco Links indicate that Umbraco stores node createDate and updateDate in umbraco.config (if you want to copy the xslt of the Umbraco content conversion).
But I need to be able to display the publication date in xslt transforms.
Now, after developing this in the Umbraco database, cmsContentVersion.VersionDate is the publication date of node, and cmdDocument.updateDate is the last updated date. I can create a trigger that modifies updateDate to match the publication date whenever the publication date changes and use the following xsl:
<xsl:value-of select="umbraco.library:FormatDateTime(@updateDate, 'd MMM yyyy hh:mm')"/>
But ideally, I don't want to change the basic definitions of Umbraco tables.
I found this link that suggested expanding the node document to publish the release date in C # using:
public static string ReleaseDate(int nodeId) { Document d = new Document(nodeId); return d.ReleaseDate.ToString(); }
... but how do I translate this C # to xslt? Overwriting xslt as ascx macros is not an option.
source share