How to format DateTime with milliseconds in XML with XSL?



I have an xml document in which I have a datetime striing as 2014-08-22T17:06:01.213. I need to format this into Aug 22 2014 6:01 AM ET. I tried the following in my XSL, but, it not working.



<xsl:call-template name="format-date-time">
<xsl:with-param name="format-date-time">mmm dd yyyy hm:nn:ss.SSS apm</xsl:with-param>
<xsl:with-param name="datetime" select="ParentNode/ChildNode/@DateTime"/>
</xsl:call-template> ET


How can I achieve the desired format?


No comments:

Post a Comment