I use a DateTimePicker in my app and I want it to allow to select only past dates, I use it to allow the user to select his date of birth and I would like it to start and end at a given year.
I use a DateTimePicker in my app and I want it to allow to select only past dates, I use it to allow the user to select his date of birth and I would like it to start and end at a given year.
Well, a quick look at the DateTimePicker documentation shows that you use the
setDateTime
,setMaximumDate
andsetMinimumDate
methods to set the timespans and initial date.