Copied to clipboard

Flag this post as spam?

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


  • Peter S 169 posts 587 karma points
    May 28, 2010 @ 23:42
    Peter S
    0

    Format date in english

    When using <xsl:value-of select="umbraco.library:LongDate(@createDate)"/>  I get the creation date of the page. When doing this the date is formated to whatever language you browser is set to. In my case that would be swedish and todays date gives me "den 28 maj 2010". The rest of the site is in english so it would look really bad showing the dates in another language so is there a way to get it to force it to use english, giving me kind of like "28th of may 2010"?

  • Morten Bock 1867 posts 2140 karma points MVP 2x admin c-trib
    May 29, 2010 @ 09:47
    Morten Bock
    1

    If you add a hostname to your top node, you can select the language for that hostname. That will set the thread culture for you, so that the dates display in the corresponding language.

  • Peter S 169 posts 587 karma points
    May 30, 2010 @ 09:21
    Peter S
    0

    Thanks, that did the trick!

Please Sign in or register to post replies

Write your reply to:

Draft