I have an XML document that has dates in standard ISO 8601 format. Like this:
2011-11-29T04:15:22-08:00
I would like to convert the time to UTC and the output date in the following form using XSLT:
2011-11-29 12:15:22
How can it be done?
Thanks in advance.
XSLT-1.0 doesn’t have functions for date formatting.
Therefore you have to work with it as with text – see related question Format a date in XML via XSLT
Other possible way is to create extension functions (see @0xA3 answer in the same question in the case of MSXSL and .Net)