Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Compare dates to use for validation

7:53 pm on Nov 29, 2007 (gmt 0)

New User

10+ Year Member

joined:Jan 11, 2006
votes: 0

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?

9:20 pm on Nov 29, 2007 (gmt 0)

Preferred Member

10+ Year Member

joined:Oct 28, 2002
votes: 0

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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members