Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need a calendar picker and validation for From Date and To Date

 
Kartik Tal
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my page am having two fields like From Date and To Date.
Is there any script where there is a calendar picker and after choosing two dates and on click of submit button
It needs to do validations like
1) From Date should be lesser than To Date.
2) Leap year and etc.


Regards,
Kartik
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are plenty of calendar scripts out there that do many different things, google away.

Eric
 
Kartik Tal
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eric,
I had first tried in Google only but am getting for a single field script, but here the case is am having From Date and To Date.
So I havent got any link which is comparing two dates. If you got any link please share with me.

Regards,
Kartik
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most calendars are single filed scripts. Run the validation on the submit of the form or try to find one that gives you notification when the value is selected.

I have not use calendar scripts in ages so I can not tell you of ones that do this stuff.

Eric
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64824
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implement two of them.

The jQuery UI calendar widget is easy as pie to use.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic