I'm receiving the date in the below format:
"Deadline": "2019-07-05T16:30:00"
And I'm trying to parse it using below formatter:
private val formatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss", Locale.ENGLISH)
But I'm getting the following exception:
org.threeten.bp.format.DateTimeParseException: Text '2019-05-21T12:30:00' could not be parsed at index 19
Note: i'm using ThreeTenABP library
DateTimeFormatter.ISO_LOCAL_DATE_TIME
. – AultLocalDateTime.parse("2019-05-21T12:30:00", formatter)
. It gave the expected result and no exception. Could you create a Minimal, Reproducible Example, please? – Ault