Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

When placing the date range the script shows a 1 day before #320

Open
brennosacra opened this issue Aug 26, 2023 · 0 comments
Open

When placing the date range the script shows a 1 day before #320

brennosacra opened this issue Aug 26, 2023 · 0 comments

Comments

@brennosacra
Copy link

I'm creating a selector for the user to choose predefined intervals, such as today, a week, a month, etc.

When I use today the range should be today's date - today's date, but litepicker puts the date 1 day earlier.

`new Litepicker({
element: document.getElementById('picker'),
format: "DD/MM/YYYY",
startDate: '2023-08-26',
endDate: '2023-08-26',
singleMode: false,

});`

Return 25/08/2023 - 25/08/2023

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

1 participant