I am using the DatePicker for my application. I want to get the date that I have selected (on the DatePicker), but it\'s not returning the selected
DatePicker
Dj's answer would work. And if you want to use a calendar variable for storing the date then,
public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) { setDate.set(year, monthOfYear, dayOfMonth);
Hope this helps!