ch4 1
ch4 1
DatePicker
• In Android, DatePicker is a widget used to select a date.
It allows to select date by day, month and year in your
custom UI.
• Methods
getDayOfMonth()- gets the selected day of month
getMonth() – gets the selected month
getYear() – get the selected year
updateDate(int year, int month, int day) – updates the current
date