daterangepicker icon indicating copy to clipboard operation
daterangepicker copied to clipboard

Once the component is initialized set startDate and endDate on the fly.

Open jesusdp opened this issue 6 years ago • 2 comments

I couldn't find a way to set startDate and endDate once I created the date picker component on the DOM.

jesusdp avatar Nov 16 '17 16:11 jesusdp

+1

ashishsantikari avatar Mar 06 '18 11:03 ashishsantikari

Here's what worked for me:

$(".daterangepicker-field").data('daterangepicker').endDate(yourEndDate).applyChanges()

snaatwow avatar May 14 '21 08:05 snaatwow