how to get exact date and time java android studio code example Example: android java get current date import java.time.*; LocalDate date = LocalDate.now();