DatePicker is an Android widget that allows you to choose a date. It allows you to choose a date in your own UI by day, month, and year (user interface). We'll need to utilise a DatePickerDialog class if we want to show this view as a dialogue. Android also has a timepicker that may be used to select the time.