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"?
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.
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"?
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.
Thanks, that did the trick!
is working on a reply...