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