```DateTimeFormatter .ofLocalizedDateTime(Form...
# multiplatform
u
Copy code
DateTimeFormatter
    .ofLocalizedDateTime(FormatStyle.LONG, FormatStyle.SHORT)
this is java.time I'm trying to migrate to
kotlinx.datetime
. Is there a build in locale-aware formatter out of the box?
c
As far as I know currently there is only locale-invarinat date-time formatting support in KMP, introduced with kotlinx datetime v0.6.0 There is an ongoing discussion about how a locale-aware formatter in KMO should be implemented: https://github.com/Kotlin/kotlinx-datetime/discussions/253
👍 1