How to get current Date (day month and year) and time (hour, minutes and seconds) all in local time in Kotlin?
I tried through LocalDateTime.now()
but it is giving me an error saying Call requires API Level 26 (curr min is 21)
.
How could I get time and date in Kotlin?