Filtering by date Problem #13971
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @svhtamil I've been looking into this for you. It does seem to be something of a drawback in the way that we are comparing dates. I think it's specifically around the times that are attached to the dates that we're looking for. Even when, in the data section, we select "Date Only", we seem to set a time of Even when that column is set to "Date Only", it seems to still hold that However, knowing this, we can use it to our advantage by specifying times when we chose the From and To dates of our range. Adjust the settings of your Date Picker so that Show Time is not checked. Now in your Table Filter section we can force these filters to work from the very beginning of the start-date to the very end of the end-date. We'll use a little bit of the JavaScript Date Constructor (read more here). In short, we're taking the date specified, and attaching a time to it - the first minute of the day in the "from" filter, and the last minute in the day in the "to" filter. Copied and pasted here for ease That should help get you around the issue you're facing. I'm going to write up an enhancement to address the root of the issue though. |
Beta Was this translation helpful? Give feedback.
Hi @svhtamil
I've been looking into this for you. It does seem to be something of a drawback in the way that we are comparing dates. I think it's specifically around the times that are attached to the dates that we're looking for. Even when, in the data section, we select "Date Only", we seem to set a time of
01:00
. We can see this by creating some rows while the column is set to "Date Only" and then switching it back to also include the time.Even when that column is set to "Date Only", it seems to still hold that
01:00
time, which we can see by setting our Date Picker components to Show Time, and making the query with a start date and time to be00:30
, which will then show valuesHo…