Groovy web console

subscribe to the feed Subscribe
to this
site

iso8601

Published 3 months ago by mfayzullin
Actions  ➤ Edit in console Back to console Show/hide line numbers View recent scripts
import java.lang.reflect.Type;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;

def value = '2019-06-28T05:57:11.6Z';
OffsetDateTime.parse(value, DateTimeFormatter.ISO_OFFSET_DATE_TIME);