How do I set the date for a date picker?

Viewed 9623

I use DatePickerDialog.OnDateSetListener that's works fine.

I want to add date for 120 days in date picker.

What I mean is if I add 120 days, the date and month will be change automatically. How to do it?

3 Answers

Set Date Programmatically by using UpdateDate

datePickerDialog.UpdateDate(selectedDate ?? DateTime.Now);
Related