Hi, I’ve bee trying to display the count of a database according to date created on page load. I have a Date/Time Picker Start and Date/Time Picker End where it gets the date and the initial content is current date/time. was able to get all of the list when I change both date/time picker. But when I try to refresh or load the page the count goes back to 0.
Well, seeing as it’s impossible for anything to be created in the future, using a constraint of Created Date ≥ Current date/time will never return any results.
and the other constraint of Created Date < Current date time + 1 day also makes no sense (as I said, nothing can be created in the future, so that constraint isn’t doing anything at all.
In that case you just need a single search constraint:
Created date ≥ Current date/time: rounded down to Day
note: that will define the start of today in whichever time zone you specify in the :rounded down to day operation - so just bear that in mind (‘Today’ for one user might be ‘Yesterday’ for another User). Depending on the specifics of your app, that may or may not be something you need to consider.