# Current date and time

**URL:** https://community.glideapps.com/t/current-date-and-time/63224
**Category:** Ask for Help
**Created:** [June 27, 2023, 8:35pm UTC](https://community.glideapps.com/t/current-date-and-time/63224 "2023-06-27T20:35:08Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 27, 2023, 8:35pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/1 "2023-06-27T20:35:08Z")

</div>

Hello everyone!  
While building a birthday reminder for the colleagues on our platform, I faced an issue. Could you help me with that?  
The current date (is taken through Math column → now) is compared with the date of the birthday and then through if colomn the notification is shown.

Everything works great in Glide and in Chrome on my Mac. But on other devices nothing is visible (doesn’t matter whose account is singed in. My iPhone or Safari browser do not show the item as well as Home on my colleagues Mac and PC).

What is going on? Am I missing something? The same thing happens when I just place the date and time taken from Math column.

Thank you for any reply

This is how it looks in my Chrome

 ![Screenshot 2023-06-27 at 17.25.09](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/5/a560223e769abe5c8f79d01031b844a7a1b20891.png)

Anywhere else

 ![Screenshot 2023-06-27 at 17.29.35](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/5/05d5a1106ea16a36504d01acf6dad25bce2bee28.png)

 ![Screenshot 2023-06-27 at 17.29.03](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/5/c5d7c7c342db0a6dddafca909fb3367d926bf3e7.jpeg)

---

<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: [June 27, 2023, 8:40pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/2 "2023-06-27T20:40:38Z")

</div>

It really shouldn’t matter mathematically, but the parenthesis should not be necessary if you are just returning the Now value in your math column. Try removing the parenthesis.

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 27, 2023, 8:44pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/3 "2023-06-27T20:44:20Z")

</div>

> [@Jeff\_Hager](#):
>
> parenthesis

They remained there from the last iteration. Tried to get rid of them. Unfortunately, didn’t help

---

<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: [June 27, 2023, 8:51pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/4 "2023-06-27T20:51:30Z")

</div>

I’m surprised the date and time aren’t at least showing on the screen. My only thought is that the screen isn’t attached to a row for some reason, so it has nothing to show. Do you have any filters on the screen itself? Are you maybe utilizing row owners in a way that no rows are accessible?

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 27, 2023, 9:02pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/5 "2023-06-27T21:02:20Z")

</div>

It is interesting. There is a filter (but just on the item, not on a screen). I filter the rows according to the notification message taken from if then else column. When I delete the filter, all other rows apart the one with the notification become visible everywhere. The only exception — my Chrome session, there everything is shown.

The information is taken from Users table. Does it all make any sense?

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 27, 2023, 9:10pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/6 "2023-06-27T21:10:57Z")

</div>

And still, the most surprising thing for me is that in Glide viewing as any user everything is shown properly when the filter is set up

---

<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: [June 27, 2023, 9:45pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/7 "2023-06-27T21:45:49Z")

</div>

I’m sure we’re just missing something small, but I’m not sure what that would be. Can you share some more screenshot showing how things are set up and configured? I’m not sure what exactly I need to see, so anything you can provide would be useful. I still feel like there is a visibility, filter, or row owner in play here.

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 27, 2023, 9:59pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/8 "2023-06-27T21:59:03Z")

</div>

Here is how everything is set up. I add the date of the birthday (the exact day and the day before). In the column Math there is a current date. Then I take just a date without a year from the current date (through Split Text and then Single Value). There is a template for adding names to the notifications.

 ![Screenshot 2023-06-27 at 18.53.30](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/7/879f3a6d96dbd0d8a1cebfa13349f434d588918a.jpeg)

The only filter is the one that is responsible for getting rid of the empty rows. There are no filters on the screen (I even created a new one).

 ![Screenshot 2023-06-27 at 18.57.25](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/1/d1970ba796f6488320d733af1c7a173e9a4984c5.jpeg)

---

<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: [June 27, 2023, 10:14pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/9 "2023-06-27T22:14:20Z")

</div>

Ok, it might be something with the way you are comparing your dates, which can become unstable depending on different browsers and operating systems. For one, you are converting everything to text. For another, you are splitting a date into it’s text elements.

How are you obtaining the ‘Birthday’ and ‘Birthday minus Day’ values? Preferably they would be a number in MMDD format.

I guesswould take a different approach.

First a math column to get the current date:

`Month(Now)*100+Day(Now)`

Another math column to get the current date + 1.

`Month(Now+1)*100+Day(Now+1)`

Then if you have have your birthday as a MMDD, you can directly compare the number to your two math columns.

Converting to numbers will be a lot safer, because you are not reliant on the text formatting of dates, which could differ based on a user’s region, browser, or OS.

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 27, 2023, 11:46pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/10 "2023-06-27T23:46:44Z")

</div>

Thank you very much! Don’t know how but the combination of both approaches helped. Now I will be deleting the extra columns one by one to figure out when the whole thing breaks

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 28, 2023, 12:04am UTC](https://community.glideapps.com/t/current-date-and-time/63224/11 "2023-06-28T00:04:50Z")

</div>

Oops! Feels the problem hasn’t been solved… Nothings has worked yet.  
The only reason everything was displayed correctly for a while was my mistake in the date. Now here we are again…

---

<div class="post-metadata">

### Author: ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)
#### Post date: [June 28, 2023, 1:23am UTC](https://community.glideapps.com/t/current-date-and-time/63224/12 "2023-06-28T01:23:49Z")

</div>

Hola Dmitrii

There are some issues that I would fix to avoid problems with devices with different regional settings:

Your column **Birth minus day** should be a Date column instead of a Text one.  
If you write October 4, this can be fine for some devices with date settings like _MMMd_ but your logic will fail if a device uses date settings _MMMM dd_ (October 04 or May 03).

That missing zero in the day format will break your logic, so you have to change it

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/f/5fc6cd3e8188d9ae8c21f2811ee06758ba8e5cf1.jpeg)

Try with this:

1. Create a new **Birth minus day** column as a Date column selecting “Respect time zones” option and write your values.  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/6/96bfe1a6174143f94caaa68e0ba09de9e521701e.png)
2. Modify your If-Then-Else column to work with a Date column
3. Let us know your results please.

Saludos!

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 28, 2023, 1:38am UTC](https://community.glideapps.com/t/current-date-and-time/63224/13 "2023-06-28T01:38:33Z")

</div>

Hola!

Have already done it. Unfortunately, didn’t help(

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [June 28, 2023, 3:22am UTC](https://community.glideapps.com/t/current-date-and-time/63224/14 "2023-06-28T03:22:11Z")

</div>

The below sets off a giant alarm bell for me:

 ![CleanShot 2023-06-28 at 11.17.26@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/d/6d8fbc6a5caeb8e77fe0ecd5fa5f9836903e81bb.jpeg)

The above is guaranteed to fail on some devices, as not every device will use the same date format.

I find it difficult to believe that the approach that Jeff described does not work. In fact, I _don’t_ believe that it doesn’t work.

> [@Jeff\_Hager](#):
>
> I guesswould take a different approach.
> 
> First a math column to get the current date:
> 
> `Month(Now)*100+Day(Now)`
> 
> Another math column to get the current date + 1.
> 
> `Month(Now+1)*100+Day(Now+1)`
> 
> Then if you have have your birthday as a MMDD, you can directly compare the number to your two math columns.

Can you show screen shots of how you have set it up following Jeff’s instructions?

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 28, 2023, 1:33pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/15 "2023-06-28T13:33:46Z")

</div>

I hope there is something wrong in what I am doing, because Jeff’s approach looked so logical

First, I added the date column and chose “respect time zones”. The format is "date only’, short. Then I split it and create a joined text to get rid of “/”. I did it twice: with the birthday date and with the date - 1 day — for two notifications: “the birthday is tomorrow” and “the birthday is today”.

Then I created math columns and used the approach kindly suggested by Jeff. The only different is that the second math column contains (Now-1), not +1. I tried with both variants anyway.

 ![Screenshot 2023-06-28 at 10.23.12](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/a/ca11fdb48aa27af0227248febcfa3d69b87b2065.png)

Finally, there is a notification If-else-then column.

 ![Screenshot 2023-06-28 at 10.23.25](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/4/1496390c6a238e4a4223ea12b32e79e7e4a70eb5.png)

The notification in the table is displayed correctly. On the screen as well. These are the only places where the component is shown

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [June 28, 2023, 1:51pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/16 "2023-06-28T13:51:30Z")

</div>

> [@Dmitrii\_Gorbachev](#):
>
> First, I added the date column and chose “respect time zones”. The format is "date only’, short. Then I split it and create a joined text to get rid of “/”. I did it twice: with the birthday date and with the date - 1 day — for two notifications: “the birthday is tomorrow” and “the birthday is today”.

No, no, no - don’t do all that.

Here - watch this:

The above will work reliably on all devices.

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [June 28, 2023, 2:32pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/17 "2023-06-28T14:32:47Z")

</div>

You’re so smooth, Darren.

---

<div class="post-metadata">

### Author: ![Dmitrii\_Gorbachev](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/dmitrii_gorbachev/32/51794_2.png) [@Dmitrii\_Gorbachev](https://community.glideapps.com/u/Dmitrii_Gorbachev)
#### Post date: [June 28, 2023, 2:32pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/18 "2023-06-28T14:32:49Z")

</div>

Thank you! Now it works!  
Spent much time on this one and feels that started making it waaaay more complicated than it really was. Thank you once again for such a great tutorial!

---

<div class="post-metadata">

### Author: ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)
#### Post date: [June 28, 2023, 8:35pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/19 "2023-06-28T20:35:11Z")

</div>

Hola de nuevo!

I’m late to the solution but anyway, here my solution to complement Jeff and Darren’s idea. Fortunately, Glide gives you more than 1 option to solve a problem.

Here my workaround using text only (converting a Date into Text with “respect time zones” marked)

This looks like using US format (English)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/8/d8d34cdd80e0388f09c03d49f37230ecb6892130.png)

instead, with Latin American format (Spanish):

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/869f2fa7351909438cfaf19610a0ee8a06fea14c.png)

… the result is the same!

The key is to keep the date format the same wherever it is used, I used in this case _MMMM dd_

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/6/46d1563ce9ec0a2556ae2b2da8d1f853543424b3.png)

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/d/1dc72c9024c137aada0632d5d90fc0fe8d634494.png)

Saludos!

---

<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: [June 29, 2023, 8:35pm UTC](https://community.glideapps.com/t/current-date-and-time/63224/20 "2023-06-29T20:35:35Z")

</div>

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