VBScript Work out if a person is over 18 based on their Date of Birth

Posted by Jonathan on Stack Overflow See other posts from Stack Overflow or by Jonathan
Published on 2010-03-30T15:56:44Z Indexed on 2010/03/30 16:13 UTC
Read the original article Hit count: 436

Filed under:
|

Hi all,

I have my users DOB as a string (don't ask), how can I reliably check to see if they are over 18? Would I use DateDiff? How would I convert the string to a date first? The date is in dd/mm/yyyy format.

Many thanks Jonathan

© Stack Overflow or respective owner

Related posts about vbscript

Related posts about datetime