Date formats

Is there a way to get the date from this string 2024-03-18T21:57:20-04:00

I had asked for this but was ultimately ignored.

#63238 - Support for ISO8601 with DateTime.FromString

2 Likes

No way directly.
You will need to replace “T” with empty space.
You will need to cut the last 6 characters (-04:00) and convert that to seconds
Then use DateTime.FromString with the new string, locale nil, new TZ with the seconds
Or at least that is how I would do it.