toLocalDate

fun String.toLocalDate(): LocalDate

Converts this string representing a date in ISO-8601 format to a LocalDate value.

See LocalDate.parse for examples of local date string representations.

Throws

if the text cannot be parsed or the boundaries of LocalDate are exceeded.