I have an XML with datetime data:
<A>
<StartDate>2011-11-01T00:00:00</StartDate>
<EndDate>2011-11-30T00:00:00</EndDate>
<IsRecurring>false</IsRecurring>
</A>
I need to get in xslt only the dates in the following format:
01/11/2011 - 30/11/2011
When I do:
<xsl:value-of select="A/StartDate/"> - <xsl:value-of select="A/EndDate/">
I get this:
2011-11-01T00:00:00 - 2011-11-30T00:00:00
How can I display it properly?
Look at XPath string functions:
substring,substring-beforeand etc.Reference: http://www.w3.org/TR/xpath/#section-String-Functions