# How to display Good morning/afternoon/evening based on Current time?

**URL:** https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725
**Category:** Ask for Help
**Created:** [August 5, 2023, 11:15am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725 "2023-08-05T11:15:27Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Trustin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trustin/32/88217_2.png) [@Trustin](https://community.glideapps.com/u/Trustin)
#### Post date: [August 5, 2023, 11:15am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/1 "2023-08-05T11:15:27Z")

</div>

I have a welcome screen with a button to track user login time. Set (Log in time) to current time.  
But is there a way to display “Good Morning” or “Good Evening” based on the (Log in time)?

---

<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: [August 5, 2023, 11:20am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/2 "2023-08-05T11:20:35Z")

</div>

You mean based on the current time, right?

- Use a math column to determine the current hour of the day: `Hour(Now)`
- Then use that in an if-then-else column:  
– If Hour \> 18, then Evening  
– If Hour \> 12, then Afternoon  
– Else Morning
- Then use that in a template column

---

<div class="post-metadata">

### Author: ![Trustin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trustin/32/88217_2.png) [@Trustin](https://community.glideapps.com/u/Trustin)
#### Post date: [August 5, 2023, 11:29am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/3 "2023-08-05T11:29:47Z")

</div>

Sometimes, I overcomplicate things! 🤣

---

<div class="post-metadata">

### Author: ![Trustin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trustin/32/88217_2.png) [@Trustin](https://community.glideapps.com/u/Trustin)
#### Post date: [August 5, 2023, 11:37am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/4 "2023-08-05T11:37:11Z")

</div>

Encounter a similar issue with Computer Columns not able to have less than or more than conditions.

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

---

<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: [August 5, 2023, 11:46am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/5 "2023-08-05T11:46:16Z")

</div>

You need to convert the current time to a number using the formula that I gave you earlier:

> [@Darren\_Murphy](#):
>
> Use a math column to determine the current hour of the day: `Hour(Now)`

 ![CleanShot 2023-08-05 at 19.47.22@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/7/07c52b2e1048f5e7cf43873c832f54c87f11eb87.png)

---

<div class="post-metadata">

### Author: ![Trustin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/trustin/32/88217_2.png) [@Trustin](https://community.glideapps.com/u/Trustin)
#### Post date: [August 5, 2023, 11:49am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/6 "2023-08-05T11:49:04Z")

</div>

Ah that’s a formula! I was using the option \> Now.  
Is there anywhere to refer such formulas or are they basically Excel formulas?

---

<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: [August 5, 2023, 11:53am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/7 "2023-08-05T11:53:44Z")

</div>

All the supported functions are listed in the Docs.

> **[Math Column](https://www.glideapps.com/docs/automation/computed-columns/math-column#functions)**
>
> Perform instant calculations using the data in your project.

---

<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: [August 12, 2023, 11:54am UTC](https://community.glideapps.com/t/how-to-display-good-morning-afternoon-evening-based-on-current-time/64725/8 "2023-08-12T11:54:18Z")

</div>

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