Best way of storing Date & Time in Kotlin

Viewed 918

I'm honestly kinda lost.

I need to store date & time for simple usage, for example storing in the database, sectioned recycler view etc, but there are too many options of how to save data&time, and every article say one is better than the other.

There are Date, Calendar, LocalDateTime, Instant etc

My question is what is the current best way of storing date and time?

1 Answers

Best way to store date and time in millisecond. Convert your date and time to millisecond and store it.

Related