# Filter Data by Date/Time is within Today

**URL:** https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362
**Category:** Ask for Help
**Created:** [December 5, 2023, 3:10am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362 "2023-12-05T03:10:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Clifton\_Crouch](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/clifton_crouch/32/24428_2.png) [@Clifton\_Crouch](https://community.glideapps.com/u/Clifton_Crouch)
#### Post date: [December 5, 2023, 3:10am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/1 "2023-12-05T03:10:29Z")

</div>

I’m trying to filter a list of schedule items so that only events for Today are displayed, but I’ve noticed that towards the end of the day, Tomorrow’s events also show up.

I think I must be doing something incorrect with the filter or be misunderstanding how it works.

 ![Screenshot 2023-12-04 at 10.06.11 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/1/9148356f72a9d0bf8ec159e03968ec05c5263eca.png)  
 ![Screenshot 2023-12-04 at 10.05.27 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/9/89dba7a16f55fa19156bd25bf8c128e542a83ec7.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 5, 2023, 3:16am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/2 "2023-12-05T03:16:27Z")

</div>

Out of curiosity, does your date column have the Respect Time Zone option checked (provided it’s a glide table)?

---

<div class="post-metadata">

### Author: ![Clifton\_Crouch](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/clifton_crouch/32/24428_2.png) [@Clifton\_Crouch](https://community.glideapps.com/u/Clifton_Crouch)
#### Post date: [December 5, 2023, 3:19am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/3 "2023-12-05T03:19:27Z")

</div>

Thanks Jeff, helping me all over the place haha.

It’s not a Glide table (Google Sheet) so I can’t use it.

I wondered if it had something to do with Time Zones, although I’m in eastern time, but maybe Glide is using somewhere else Internationally as the standard time.

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 5, 2023, 3:25am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/4 "2023-12-05T03:25:25Z")

</div>

My initial guess would be the same. Maybe it’s factoring in UTC time somewhere along the lines.

I think I would create two math columns with the following formula.

```auto
Year(Date) * 10^4
+ Month(Date) * 10^2
+ Day(Date)

```

In one column point Date to the start date column. In the other, point Date to Today or Now. Then compare the two in your filter to only include the ones that match.

Dates in Glide seem buggy sometimes. I’ve seen dates be off by several hours in some cases. Can’t really explain it, but I’ve seen weird things at times.

---

<div class="post-metadata">

### Author: ![Clifton\_Crouch](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/clifton_crouch/32/24428_2.png) [@Clifton\_Crouch](https://community.glideapps.com/u/Clifton_Crouch)
#### Post date: [December 5, 2023, 3:41am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/5 "2023-12-05T03:41:54Z")

</div>

Does this look right?

 ![Screenshot 2023-12-04 at 10.40.31 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/f/9f0de1a01324db855c97340f6dc0cb653c4fb12e.png)  
 ![Screenshot 2023-12-04 at 10.40.42 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/7/27df48f12503facc524c0e34618a9719255cfb87.png)

The Math column doesn’t seem to be recognizing it as a Date. Am I doing something incorrect or do I need an additional step to convert it to a Date?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 5, 2023, 3:44am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/6 "2023-12-05T03:44:19Z")

</div>

That looks correct. The point is to convert it to a number as opposed a date. You’re only using it for your filter.

---

<div class="post-metadata">

### Author: ![Clifton\_Crouch](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/clifton_crouch/32/24428_2.png) [@Clifton\_Crouch](https://community.glideapps.com/u/Clifton_Crouch)
#### Post date: [December 5, 2023, 3:49am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/7 "2023-12-05T03:49:55Z")

</div>

Okay, I must not be understanding how to set up the filter then.

Would you mind explaining in greater detail how the filter would be set up on the list?

This is my current filter.

 ![Screenshot 2023-12-04 at 10.49.29 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/7/27081139d3f8fd920806c08084873de63d810a1c.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [December 5, 2023, 4:09am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/8 "2023-12-05T04:09:03Z")

</div>

If DateMathToday1 equals DateMathToday2 then that means that row is a Today row.

---

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)
#### Post date: [December 12, 2023, 4:09am UTC](https://community.glideapps.com/t/filter-data-by-date-time-is-within-today/68362/9 "2023-12-12T04:09:23Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
