title: How to get the date from the DatePicker widget in Android?
body: <p>I use a <code>DatePicker</code> widget in Android for the user to set a date, and want to get the date value when a confirm button is clicked, how can I do that?</p>