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