android java date code example Example: android date import java.time.*; LocalDateTime datetime = LocalDateTime.now();