views:

27

answers:

2

Hey All,

What's the best, free JavaScript library to work with time and date fields in a JSP project?

Here are my needs:

  • Formatting should be customizable.
  • For a date field, a date picker popup would be a plus.
  • Does not allow the user to enter invalid characters, much like the time field in Windows clock.
  • Does not depend on jQuery. Nothing against jQuery, but my project isn't ready to commit to it yet.

If there's one from Apache or SourceForge, that would be great!

Or should I make one myself? :(

Thanks!

A: 

jquery datepicker

http://jqueryui.com/demos/datepicker/

Alexander Corotchi
You've ignored the fourth bullet: *"Does not depend on jQuery. Nothing against jQuery, but my project isn't ready to commit to it yet."*
T.J. Crowder
+1  A: 

Date.js is a very good library, and has validation functions too... but it doesn't offer UI support, so it should be matched with some additional components.

http://www.datejs.com/

mamoo
...but...it's not a date picker. Yes, fantastic lib, have recommended it several times. It's just, as an *answer*, it kinda falls at the first hurtle, y'know?
T.J. Crowder
I've decided to go with one of the libraries from the site T.J. linked. Thanks all for the help.
Tom Tucker