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

Default End Date #43

Open
kennedyrose opened this issue Sep 30, 2021 · 1 comment
Open

Default End Date #43

kennedyrose opened this issue Sep 30, 2021 · 1 comment

Comments

@kennedyrose
Copy link

Is there a way to set the default end date that shows up? Or set it programmatically somehow. We have an app where the default end date on the range needs to be set for a day from current day.

@t-lock
Copy link
Contributor

t-lock commented Apr 4, 2023

We have the same issue. Unfortunately we didn't realize that this critical functionality was missing until already implementing and theming the range picker.

EDIT: I have submitted a PR which solves this issue: #65

I am not sure if this project is actively being maintained anymore, but if anyone stumbles across this same issue, they can check the code above for a solution. It's a very minimal and simple solution you can implement in your own project: see commit: 895d635

If you want, you could even install my fork directly

npm i https://github.com/t-lock/svelte-datepicker.git

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

2 participants