Hi

I have to limit that user for no age less then 18 years

I have only 2 ideas for developments of these

1 > check for date year is greater then 1990 of today then
but i think it is not good way to coding for flexibility in future next 10 years

2> check same as asp.net values like 1 to 30 = DD
JAN to DEC = MM
1900 to 1090 =YYYY

by 3 combo in it

But i have date time fields in back end to store DOB

so i think this is also not best way to store by 3 columans


can i have more ideas about this ?

means i can select that date and copare with today for age is valid or not in it

Thanks in Advance for reply


With example is most wellcome

Recommended Answers

All 2 Replies

That was a fun assignment.

Look at what's available in System.Date

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.