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