parseToLocalDate

fun String.parseToLocalDate(): LocalDate

Parses this ISO-8601 date string (e.g. "2024-03-15") into a LocalDate.

Extension function on String.

Return

the parsed LocalDate

Throws

if the text is not a valid ISO-8601 date