I am using kotlinx.datetime. How do I calculate th...
# multiplatform
j
I am using kotlinx.datetime. How do I calculate the difference between two LocalDateTime in years and months?
p
Looks like if you don’t need time, you can do arithmetic based on the LocalDate only? https://github.com/Kotlin/kotlinx-datetime#date-arithmetic. Otherwise, the next section recommends turning into Instant.
🙏 1