DatePicker control enables the user to choose a date as a ready-to-use dialog. Every date part can be picked separately by its corresponding section of the control - for day, month and year.
Using DatePicker is as straightforward as setting year, month, and day. Alternatively, you can set the date property (accepts a Date object). If required you can also set minDate and maxDate.
Note: On Android the native widgets android.widget.DatePicker is not allowing runtime changes to the color property. So if you want to have a different color for your day/month/year properties, you need to change it via the Android resources by providing custom styles.xml (in values-v21) where the style for android:textColorPrimary can be overwritten.