xsl-list
[Top] [All Lists]

Re: [xsl] dateTime conversion

2010-10-03 18:07:36

Please ignore the portion that is before the timezone and convert
T18:15:20-0400 to T09:30:47Z

Numbers are just the samples. But if I take a closure look at them, -0400 needs to be 
replaced with "Z"


Do you want to convert 12:00:00-04:00 to 08:00:00Z (the same time instant in a different time zone) or to 12:00:00Z?

And are you using XSLT 1.0 or 2.0?

Note: your date-time values are almost in ISO 8601 format, except for the missing colon between hours and minutes in the timezone offset. Was this difference deliberate?

Michael Kay
Saxonica

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>