I'm using this Example to create DatePicker where the method of setMinDate takes the first parameter as Calendar instead of long, I want to execute this method datePicker.setMinDate(calendar.getTimeInMillis()- 1000);
How to make the last date as Calendar instead of long without changing the method structure?
The structure of setMinDate in DatePickerDialog is:
public void setMinDate(Calendar calendar) {
mMinDate = calendar;
if (mDayPickerView != null) {
mDayPickerView.onChange();
}
}
Thanks in Advance.