parse

actual fun parse(isoString: String): LocalDateTime(source)
expect fun parse(isoString: String): LocalDateTime(source)

Parses a string that represents a date/time value in ISO-8601 format including date and time components but without any time zone component and returns the parsed LocalDateTime value.

Examples of date/time in ISO-8601 format:

  • 2020-08-30T18:43

  • 2020-08-30T18:43:00

  • 2020-08-30T18:43:00.500

  • 2020-08-30T18:43:00.123456789

Throws

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

actual fun parse(isoString: String): LocalDateTime(source)
actual fun parse(isoString: String): LocalDateTime(source)