Skip to content

Instantly share code, notes, and snippets.

@spmallette
Last active April 15, 2022 19:36
Show Gist options
  • Save spmallette/278b331f811ca68b4caccc40410637b3 to your computer and use it in GitHub Desktop.
Save spmallette/278b331f811ca68b4caccc40410637b3 to your computer and use it in GitHub Desktop.
2002-05-30T02:00:00.000-07:00
private static final DateTimeFormatter datetimeFormatter = new DateTimeFormatterBuilder()
.parseCaseInsensitive()
.append(ISO_LOCAL_DATE_TIME)
.optionalStart()
.appendOffset("+HHMMss", "Z")
.optionalEnd()
.optionalStart()
.appendOffset("+HH:MM:ss", "")
.optionalEnd()
.toFormatter();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment