Copied to clipboard

Flag this post as spam?

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


  • Floffy 26 posts 33 karma points
    Jan 22, 2009 @ 23:01
    Floffy
    0

    Localizing xslt dates

    I have a Danish site, on an English server. When I use XSLT to show dates they are en English. How do I translate / localize them?
    Snippet from my present XSLT:


    And the same question for the items in my templates”
    Code:

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    Jan 23, 2009 @ 06:39
    Casey Neehouse
    0

    Have you tried using the short date format or long date format?

    umbraco.library:FormatDateTime(@updateDate, 'd') for short date format
    umbraco.library:FormatDateTime(@updateDate, 'D') for long date format

  • Casey Neehouse 1339 posts 483 karma points MVP 2x admin
    Jan 23, 2009 @ 06:41
    Casey Neehouse
    0

    Assign your domain and language (right click on top level node, manage hostnames) to the root node. That should fix the culture issue.

  • Floffy 26 posts 33 karma points
    Jan 23, 2009 @ 17:51
    Floffy
    0

    Thanks, that did the trick =d>

  • 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