How to parse UTC datetime string containing a Z for UTC or GMT =0

Hi,   Am i correct in my conclusion that i cannot parse a UTC datetime string like ‘2022-02-24T13:54:30Z’ with parseDateTime or parseDateTimeUTC? I cant get it to work and the only option i see is to first cut away the Z at the end of the string with some string manipulation. Anyone else encountered this, or does have a nice solution
1 answers

Try this…

parseDateTimeUTC('2022-02-24T13:54:30Z', 'yyyy-MM-dd''T''HH:mm:ss''Z''')