Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jaavscript date validation  RSS feed

 
san krish
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
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
Sheriff
Posts: 54058
130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a Java™ question. Moving thread.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!