convertToLocalDate { } instead.
ImportRow.kt
ISO 8601
isoDate
isoDate() on String
Checks that the string is an ISO 8601 date, such as 2024-02-29, that exists in the calendar.
isoDate
isoTime
isoTime() on String
Checks that the string is an ISO 8601 time, such as 13:45 or 13:45:30.5, with no offset.
isoTime
isoDateTime
isoDateTime() on String
Checks that the string is an ISO 8601 date and time with an offset, such as 2024-02-29T13:45:30Z or 2024-02-29T13:45:30+01:00.
isoDateTime
isoDuration
isoDuration() on String
Checks that the string is an ISO 8601 duration, such as P1Y2M, P3W or PT1H30M.
isoDuration
Patterns
dateFormat
dateFormat(pattern) on String
Checks that the string is a date or time written exactly in pattern.
The string is parsed with DateTimeFormatter.ofPattern and must print back the same, so 2024-2-9 does not match yyyy-MM-dd.
dateFormat