On 2020-03-07 12:10:27 +0000, Jonathan M Davis said:
I take it that you're asking why you don't get the time zone as part of the
string when you call one of the to*String functions?
The problem is, the from* functions give an error, that this is not an
ISO date.
I get this in an XML response and extract the datetime:
<ad:creation-date value="2018-11-06T16:52:03+01:00"/>
<ad:modification-date value="2019-03-04T10:14:09+01:00"/>
But I have to do:
DateTime dt =
DateTime.fromISOExtString(split("2018-11-06T16:52:03+01:00",
regex("\\+"))[0]);
IMO such a string should be feedable directly to the function.
--
Robert M. Münch
http://www.saphirion.com
smarter | better | faster