https://kotlinlang.org logo
#kotlinx-datetime
Title
# kotlinx-datetime
k

kurt_steiner

02/22/2024, 3:45 PM
hey, why I can't parse this iso8601 string to
LocalDate
?
Copy code
val iso8601String = "2024-02-09T19:33:16.744083"
k

kevin.cianfarini

02/22/2024, 3:48 PM
because it’s not a local date, it’s a local date time.
k

kurt_steiner

02/22/2024, 3:49 PM
ok
k

kevin.cianfarini

02/22/2024, 3:50 PM
the
T19:33:16.744083
denotes a time appended to a date. Because it lacks a UTC offset, it’s local. Therefore it’s a local date time.
k

kurt_steiner

02/22/2024, 3:52 PM
thank u, I will use iso string to parse
4 Views