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

Today and Yesterday Pre selects not working, #7

Open
hilyas786786 opened this issue Apr 2, 2024 · 1 comment
Open

Today and Yesterday Pre selects not working, #7

hilyas786786 opened this issue Apr 2, 2024 · 1 comment

Comments

@hilyas786786
Copy link

hilyas786786 commented Apr 2, 2024

Hi firstly let me say, amazing component, i love it.

I noticed in Console.logs

<DateRangePicker onUpdate={(values) => { const { range } = values; console.log( Selected Date Range: From ${range.from.toISOString()} to ${range.to?.toISOString()});

Selected Date Range: From 2024-04-01T23:00:00.000Z to 2024-04-01T23:00:00.000Z

This is what i get back when i select, Today,

Selected Date Range: From 2024-03-31T23:00:00.000Z to 2024-03-31T23:00:00.000Z

This is what i get back when i select Yesterday,

Selected Date Range: From 2024-03-31T00:00:00.000Z to 2024-04-01T23:00:00.000Z

This is what i get back when i select Last week.

Everything works expect Today & Yesterday, the Console.logs shows a specific moment for Today & Yesterday rather then capturing the entire day

Repository owner deleted a comment from johnpolacek-veg Apr 11, 2024
@johnpolacek
Copy link
Owner

Not following your example, as toISOString() will always output hours:minutes:seconds

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