• Post Reply Bookmark Topic Watch Topic
  • New Topic

jaavscript date validation

 
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
Marshal
Posts: 53140
124
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not a Java™ question. Moving thread.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!