Q:

Convert xml datetime data using xslt 2.0 to yyyy-MM-dd hh:mm:ss:ff

I am using xslt 2.0 to format xml datetime data to yyyy-MM-dd hh:mm:ss:ff.
xml:
<TODAYDATE>2019-03-28T17:59:49.963-08:00</TODAYDATE>

xslt 2.0:
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:output method="text" doctype-public="XSLT-compat" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />

    <xsl:template match="/">
     <xsl:value-of select="format-dateTime(TODAYDATE, '[Y,4]-[M,2]-[D,2] [h01]:[m]:[s]:[f][PN,2-2]')"/>
    </xsl:template>

</xsl:transform>

Expected result:
2019-03-28 17:59:49:96
XSLT Fiddle:
https://xsltfiddle.liberty-development.net/3MvmXiT

A:

Would this work for you?
format-dateTime(TODAYDATE, '[Y]-[M01]-[D01] [H01]:[m01]:[s01]:[f01]')

