Posted By

Reiff on 04/09/14


date xslt umbraco c#

Versions (?)

C# get release date from Umbraco post

 / Published in: C#


You could use this snippet as an Umbraco XSLT Extension to be able to get releasedate from the Umbraco post in XSLT.

  1. using umbraco.cms.businesslogic.web;
  3. public static string ReleaseDate(int nodeId) {
  4. Document d = new Document(nodeId);
  5. return d.ReleaseDate.ToString();
  6. }

Report this snippet  

You need to login to post a comment.