Age entered as dd-mm-yyyy ??? probably date of birth
if yes..
then load it to a datetime object
get the today date loaded to a date time object
get the difference to a timespan object and it have the property you are
looking for, years, months, days, hours etc
Nirosh.
"Jens Jensen" <jj@jensen.dkwr ote in message
news:%23qzQus46 GHA.4552@TK2MSF TNGP05.phx.gbl. ..
>
How do i verify that an age entered as dd-mm-yyyy is minum 21 today in C#?
>
Any suggestion will be highly appreciated.
>
JJ
>
Comment