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
LocalDateTime.now()
Another solution is changing the api level of your project in build.gradle and this will work.