In this recipe, you will learn to display a date picker dialog, allowing the user to scroll through days, months, and years to select the desired date.
Displaying a Date Picker dialog
How to do it...
In this recipe, we will be making use of the following methods:
- dialogCreateDatePicker(): This method is used to display the date with the specified initial date
- dialogGetResponse(): This method is used to get the response, that is, the selection made by the user
- dialogDismiss(): This method is used to make the dialog box invisible after a selection been made by the user
- get("day"): This method is used to access the day in the Date type object
- get("month"): This method is used to access...