At my XSLT 1.0 document I have the following element that contains a String representation of date:
Product/CreateDate = 2017-06
I need to format this String into the following String: 06/2017
Please show how it can be done with XSLT 1.0
UPDATED
This is my current XSLT structure:
<xsl:value-of select="translate(Product/CreateDate, '-', '/')" />
<xsl:if test="not(Product/CreateDate) or (Product/CreateDate='')">
—
</xsl:if>
right now it prints: 2017/06 but I need to print 06/2017 instead
<CreateDate>2017-06</CreateDate>or<elem>Product/CreateDate = 2017-06</elem>. Likewise for the output. - michael.hor257k