Я использую xslt 2.0 для форматирования xml данных datetime в формат 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>
Ожидаемый результат:
2019-03-28 17: 59: 49: 96
XSLT Fiddle:
https://xsltfiddle.liberty-development.net/3MvmXiT