Last active
January 27, 2016 19:43
-
-
Save hitenpratap/6e40263dc6bcc8675fe6 to your computer and use it in GitHub Desktop.
Sort data in XSLT based on date
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
<xsl:sort select="normalize-space(substring(itpc:StartDate,1,4))" order="descending"/> | |
<xsl:sort select="normalize-space(substring(itpc:StartDate,6,2))" order="descending"/> | |
<xsl:sort select="normalize-space(substring(itpc:StartDate,9,2))" order="descending"/> | |
<!--Suppose date is in format: 2015-11-15T12:22:15--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment