Created
October 26, 2017 09:41
-
-
Save loonix/86d8a8a6ce31cc621db41f711405f9a3 to your computer and use it in GitHub Desktop.
This will format a xsl-fo date to "DD/MM/YYY HH:MM" from a format "YYYY-MM-DDTHH:MM:SS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--This will format a date to "DD/MM/YYY HH:MM" from a format "YYYY-MM-DDTHH:MM:SS"--> | |
<xsl:variable name="dt" select="./When"/> | |
<xsl:value-of select="concat(substring($dt, 9, 2),'/',substring($dt, 6, 2),'/',substring($dt, 1, 4),' ', substring($dt, 12, 2),':',substring($dt, 15, 2))"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment