Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single Date Support ? #42

Open
zthomas1 opened this issue Dec 15, 2015 · 3 comments
Open

Single Date Support ? #42

zthomas1 opened this issue Dec 15, 2015 · 3 comments

Comments

@zthomas1
Copy link

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
Copy link
Contributor

op16 commented Dec 15, 2015

Just select a single day and click Apply.

@omerozturkh
Copy link

datepickerOptions: {
numberOfMonths: 1
}

it's work

@luobo708
Copy link

luobo708 commented Jul 4, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants