Getting date format in xslt -


i have xslt code getting date.my code like

<xsl:copy-of select="substring-before(msxsl:node-set($notes)/root/item/lastchanged,'t')"/> 

her got output 2013-04-05

but need output 15 jan 2013.

how can achive this?any 1 help

just change order

xslt

<?xml version='1.0'?> <xsl:stylesheet version="1.0"       xmlns:xsl="http://www.w3.org/1999/xsl/transform"       xmlns:ms="urn:schemas-microsoft-com:xslt"       xmlns:dt="urn:schemas-microsoft-com:datatypes">   <xsl:template match="/">   <html>   <head>   </head>   <body>     <xsl:for-each select="xmlsamples/filedetails/date">       <div>           date unedited:           <xsl:value-of select="."/>       </div>       <div>           date edited:           <xsl:value-of select="ms:format-date(., 'mmm dd, yyyy')"/>       </div>    </xsl:for-each>   </body>    </html> </xsl:template> </xsl:stylesheet> 

output

date unedited: 2000-02-16t15:56:00

date edited: feb 16, 2000


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -