Closed MiloZ closed 9 years ago
Hi,
There is no option at the moment to simply select one of the preset ranges (it would be nice to have though).
But there are two posible solutions:
setRange
method:$("#yourId").daterangepicker("setRange", {start: moment().startOf('month').startOf('day').toDate(), end: moment().startOf('day').toDate()});
<input id='yourId' value='{"start":"2015-02-01","end":"2015-02-19"}'>
(it needs proper html quoting, but you got the ideea)
Thank you!
Hi,
Is it possible to have a range selected on load, for instance have "month to date" displayed when the page is loaded?
Thanks