This question already has an answer here:
- Format a date in XML via XSLT 6 answers
How can we format the date in xslt ?
Example:
<xsl:value-of select ="name of function(I/P, 'MMM dd, yyyy')"/>
This question already has an answer here:
How can we format the date in xslt ?
Example:
<xsl:value-of select ="name of function(I/P, 'MMM dd, yyyy')"/>
This will probably help: ms:format-date Function
Using the example from the article you can format a date as follows:
If you are using XSLT 1.0, you might find the date formatting features in EXSLT - Date and Times useful, in particular format-date. If you are using XSLT 2.0, you can use the built-in function described in Formatting Dates and Times.