| Welcome to WebmasterWorld Guest from 188.8.131.52 |
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
|Become a Pro Member|
|Compare dates to use for validation|
I need to create a validation on a form that will compare two user entered dates and determine if the time between them fits a time frame.
For example, I need someone to enter a date of birth and another date and the time between them needs to be 18 years for the date to validate.
Any ideas on this?
Use the DateDiff function. It can return the value in days, months, years, etc. given the two days that are provided to the function call.
All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved