Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery ui datepicker - need a draggable date version

The jquery UI datepicker functionality is great, but I'd like to replicate the google analytics style date picker where you can select a range of dates by dragging from start to end. I don't think the datepicker can do this, nor the excellent filamentgroup range picker.

Anyone done this before and have either some mods to jquery ui datepicker or some other reference for me to consider?

Thanks

like image 505
Dan Avatar asked Feb 17 '10 22:02

Dan


People also ask

How can change date format in jQuery ui Datepicker?

inside the jQuery script code just paste the code. $( ". selector" ). datepicker({ dateFormat: 'yy-mm-dd' });

How do I change date format in date picker?

Do one of the following: For a text box control or a date picker control, ensure that the Data type list displays the appropriate data type, and then click Format. For an expression box control, ensure that the Format as list displays the appropriate data type, and then click Format.

What is minDate and maxDate in jQuery Datepicker?

If you like to restrict access of users to select a date within a range then there is minDate and maxDate options are available in jQuery UI. Using this you can set the date range of the Datepicker. After defining these options the other days will be disabled which are not in a defined range.

How can I hide Datepicker after selecting date in jQuery?

Syntax: $(". selector"). datepicker("hide");


1 Answers

I've been searching for a jQuery plugin that supports selecting a range of dates.

Amazingly, the only one I found is for Prototype:

http://stephencelis.github.com/timeframe

The author's words sums up my problem with other existing "solutions":

I’m just sick of multiple date pickers on the same page.

If anyone knows of a jQuery plugin, please post an answer!

like image 175
pithyless Avatar answered Sep 30 '22 20:09

pithyless