Hi everyone,
I'm encountering an issue with a date range picker and need some assistance. My requirement is to preserve the date range even after page refresh or navigating back to the same page. It seems to be functioning properly when the start and end dates are different, but when I assign the same date to both the start and end date variables, it throws an error stating: "StartDate '2024-04-30T18:30:00Z' can't be after EndDate '2024-04-30T18:30:00Z'". Please note that it works fine for different dates when I select dates in the date picker, but it gives an error on page refresh or when I navigate back to the same page and reassign the dates. I'm using the browser's local storage to preserve the states.
Any help would be greatly appreciated. Thank you!
Hi Navdeep Mor,
My understanding is that, it will work for you if you set the same start and end dates on the initial rendering. I made the same attempt as shown in the .oml I have attached.
Hope it is useful to you!
Hi @Navdeep Mor,
I believe this issue have been resolved at your end. This post still mart as unsolved.
Please help to mark this post to close it help others.
Thanks,
Narendra