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