Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

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

Open
jesusdp opened this issue Nov 16, 2017 · 2 comments
Open

Comments

@jesusdp
Copy link

jesusdp commented Nov 16, 2017

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

@ashishsantikari
Copy link

ashishsantikari commented Mar 6, 2018

+1

@snaatwow
Copy link

snaatwow commented May 14, 2021

Here's what worked for me:

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

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

No branches or pull requests

3 participants