Posted By

Reiff on 04/09/14


Tagged

date xslt umbraco c#


Versions (?)

C# get release date from Umbraco post


 / Published in: C#
 

URL: http://snippets.reiffs.dk/hent-udgivelsesdato-funktion-til-umbraco-indlaeg/

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;
  2.  
  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.