homepage Welcome to WebmasterWorld Guest from 54.145.183.126
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
Forum Library, Charter, Moderators: ocean10000

Microsoft IIS Web Server and ASP.NET Forum

    
Compare dates to use for validation
mqcarpenter

5+ Year Member



 
Msg#: 3516483 posted 7:53 pm on Nov 29, 2007 (gmt 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?

 

duckhunter

10+ Year Member



 
Msg#: 3516483 posted 9:20 pm on Nov 29, 2007 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Microsoft / Microsoft IIS Web Server and ASP.NET
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved