Re: [xsl] dateTime conversion

Subject: Re: [xsl] dateTime conversion
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Mon, 04 Oct 2010 00:07:25 +0100
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

Current Thread