Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • sun 403 posts 395 karma points
    Mar 18, 2009 @ 04:01
    sun
    0

    How to format date by using xslt?

    Just like this:

  • Petr Snobelt 923 posts 1534 karma points
    Mar 18, 2009 @ 08:26
    Petr Snobelt
    0

    Use substring and concat xslt functions

    Petr

  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Mar 18, 2009 @ 10:26
    Dave Woestenborghs
    0

    [quote=Petr Snobelt]Use substring and concat xslt functions

    Petr[/quote]

    There is a FormatDate function in the umbraco library

    Usage :
    [code]
    umbraco.library:FormatDateTime(data[@alias='date'], 'dd-MM-yyyy HH:mm')
    [/code]

  • sun 403 posts 395 karma points
    Mar 18, 2009 @ 11:08
    sun
    0

    I try to find out this function, but it's not included in umbraco apidocs.

  • dandrayne 1138 posts 2262 karma points
    Mar 18, 2009 @ 11:38
  • Dave Woestenborghs 3325 posts 11170 karma points MVP 5x admin c-trib
    Mar 18, 2009 @ 12:00
    Dave Woestenborghs
    0

    [quote=sun]I try to find out this function, but it's not included in umbraco apidocs.[/quote]

    Yes it is :
    http://www.umbraco.org/apiDocs/html/Mumbracolibrary_FormatDateTime.htm

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies