x First time here? Check out the FAQ

Come work for Umbraco - The Umbraco HQ are hiring Project managers, .NET developers and DevOps people!

LongDate

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

    Parameters

    LongDate(String date);

    or

    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

    Usage

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