Insert this line at the top

That will give you a header looking like this:

<xsl:stylesheet  version="1.0"  exclude-result-prefixes="x d xsl msxsl cmswrt"  xmlns:x=""  xmlns:d=""  xmlns:cmswrt=""  xmlns:ddwrt=""  xmlns:xsl="" xmlns:msxsl="urn:schemas-microsoft-com:xslt">

Then use the “ddwrt:FormatDate” to show the date i various ways:

<xsl:value-of select="ddwrt:FormatDate(@dato, 1030, 3)"/>
<xsl:value-of select="ddwrt:FormatDateTime(string(@Publiceret), 1030, 'dd. MMM. yyyy')"/>
<xsl:value-of select="ddwrt:FormatDate(string(@Dato), 1033, 7) "/>

List of all LCID’s :
Custom date and time formats:


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.