parseToLocalDateTime

fun String.parseToLocalDateTime(): LocalDateTime

Parses this ISO-8601 date-time string (e.g. "2024-03-15T08:30:45") into a LocalDateTime.

Extension function on String.

Return

the parsed LocalDateTime

Throws

if the text is not a valid ISO-8601 date-time