views:

87

answers:

2

I'm looking for a simple to integrate date picker object, which would be triggered when someone focused on a particular textbox. When a user clicked or focused on a textbox, the date picker interface should pop up, with the current date on it, and the user could easily select the date. When done, the textbox should have the date in the format YYYY-MM-DD (the mysql date format).

This should also be possible with 2 textboxes for picking the start and end date.

Any ideas?

+3  A: 

Have you seen jquery UI's datepicker? It does all of the above.

HTML

<input type="text" id="datepicker" size="30"/>

JavaScript

$('#datepicker').datepicker( { dateFormat: 'yy-mm-dd' } );
seth
A: 

If you want 'simple to integrate', i humbly suggest you give my javascript time picker a try, i hope you find it useful. It looks like this:

alt text

And here's the links:

Chris