What's the modern kotlin/java/android date/time pa...
# android
c
What's the modern kotlin/java/android date/time package I should be using?
m
The Java 8 date library is useable from Android now with the correct desugaring options. There's also the Kotlinx date time library, which is implemented on top of the Java 8 one for JVM and Android platforms.
z
ive also been having this similar situation but all the current existing libraries either fall short in functionality or are limited by API levels
c
So java 8 date libraries or the kotlinx datetime lib are my top 2 choices it seems?
m
@zt You should be able to use the java 8 date libraries regardless of API version, you just need to link the desugaring libraries. https://developer.android.com/studio/write/java8-support-table