On my Client input form i want to limit the minimum age to 18 using dates as opposed to numbers.
I have been thinking on how to go about this, i thought that a datecompare would be the way to go, but i have no idea how to compare 2 dates that will be changing with each new day.
Would it be a viable idea to take the DOBDateTimePicker min date property and increment it somehow each new day, with it preset to 03/05/1990 (18 years back from today).
Or is there a better way to go about this?
I have been thinking on how to go about this, i thought that a datecompare would be the way to go, but i have no idea how to compare 2 dates that will be changing with each new day.
Would it be a viable idea to take the DOBDateTimePicker min date property and increment it somehow each new day, with it preset to 03/05/1990 (18 years back from today).
Or is there a better way to go about this?