aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Need a calendar picker and validation for From Date and To Date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need a calendar picker and validation for From Date and To Date" Watch "Need a calendar picker and validation for From Date and To Date" New topic
Author

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

Kartik Talasu
Ranch Hand

Joined: Aug 21, 2009
Posts: 98
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
There are plenty of calendar scripts out there that do many different things, google away.

Eric
Kartik Talasu
Ranch Hand

Joined: Aug 21, 2009
Posts: 98
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

Joined: Nov 08, 2001
Posts: 15376
    
    6
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

Joined: Jan 10, 2002
Posts: 61226
    
  66

Implement two of them.

The jQuery UI calendar widget is easy as pie to use.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need a calendar picker and validation for From Date and To Date