my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes jaavscript date validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "jaavscript date validation" Watch "jaavscript date validation" New topic

jaavscript date validation

san krish
Ranch Hand

Joined: Aug 11, 2010
Posts: 41
I have a requirement like this.
I have a datepicker. If the user picks a date which is lesser than 16yeras from now, I should throw a alert message saying date is invalid.

basically i should validate sysdate-16yrs.
How do i achieve it in Javascript?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 45348
Not a Java™ question. Moving thread.
I agree. Here's the link:
subject: jaavscript date validation
It's not a secret anymore!