XSLT code for change the date format..

1
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
It will convert the format "29-Nov-2017 03:26:48" to "2017-11-29 26:48:03:48"

#INPUT XML :-

<doc>
<longdate>29-Nov-2017 03:26:48</longdate>
</doc>

#OUTPUT XML:-

<doc>
<newdate>2017-11-29 26:48:03:48</newdate>
</doc>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.