C# get release date from Umbraco post


/ Published in: C#
Save to your folder(s)

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


Copy this code and paste it in your HTML
  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. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.