0

I want DatePicker shows a specific date when opened, unfortunately seems I can set only the date limits with setMinDate and setMaxDate.

Is there a way to set a date without block the selection with date limits?

AndreaF
  • 11,975
  • 27
  • 102
  • 168

1 Answers1

0
DatePicker date = new DatePicker(context);  
date.init(year, month, day, null);

where year, month and day are ints. Here is an explanation about init

john
  • 3,949
  • 7
  • 34
  • 56
  • I've updated my answer. The getDate was my little personal code which I didn't remove lol – john Apr 17 '14 at 13:25