tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

Single Date Support ? #42

Open zthomas1 opened 8 years ago

zthomas1 commented 8 years ago

Besides, the preset items on the left, is there support for picking a single date within the date range picker? Yes, i know how that sounds... I would like to avoid using 2 different plugins for date/date range.

Thank you for your efforts.

op16 commented 8 years ago

Just select a single day and click Apply.

omerozturkh commented 8 years ago

datepickerOptions: { numberOfMonths: 1 }

it's work

luobo708 commented 7 years ago

{ applyButtonText:"", cancelButtonText:"", clearButtonText:"", presetRanges:{}, datepickerOptions: { onSelect: function(selectedDate) { $('ID').daterangepicker("setRange", {start: moment(selectedDate, "MM-DD-YYYY").toDate()}); $('ID').daterangepicker("close"); }} }