Regex for valid date range

Larry Brister
Larry Brister used Ask the Experts™
on
Is there a regex that allows a date that is after current date and less than a year in the future?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2012
Top Expert 2014

Commented:
That's not a regex's job. That would need to be validated in code. Where and what format is date coming in?
Larry Bristersr. Developer

Author

Commented:
Theres an input form on a web page

I know I can validate in code behind but this is an older site and everything on this page is validated with RegEx for format etc.

Was just wondering if any type of a Regex or javaScrip would do the trick.
Most Valuable Expert 2012
Top Expert 2014
Commented:
Larry Bristersr. Developer

Author

Commented:
Thanks

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial