Get Umbraco Certified in October

5 courses in 4 different countries across 2 continents leaves no excuse.

Attend courses in the Netherlands, UK, USA and at Umbraco HQ in Denmark.

See the schedule and read more about our training here.

The legacy wiki pages are here for reference purposes only.
For up-to-date information make sure to check the documentation section.

The method is used to get return a formatted date from Umbraco's XML.


LongDate(String date);


LongDate(String date, bool includeTime, String separator);

String    date - date from Umbraco XML.
Boolean   includeTime - include the time as well as the date.
String    separator - character(s) to separate date and time components.

Return value

The method returns a string in the form:

22 April 2006 18:43:00


<xsl:value-of select="umbraco.library:LongDate(data[@alias='PublishDate']/text(), 1, ' ')"/>

PLEASE NOTE: This has been copied directly from the old Umbraco Wiki. Kudos to the original poster. is the community mothership for Umbraco, the open source cms. With a friendly forum for all your questions, a comprehensive documentation and a ton of packages from the community. This site is running Umbraco version 7.3.0