# Takes the hours and minutes from the date

**URL:** https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300
**Category:** Ask for Help
**Created:** [October 24, 2024, 2:13pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300 "2024-10-24T14:13:39Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 24, 2024, 2:13pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/1 "2024-10-24T14:13:40Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/4/74b32ace9c3cf57affb53f86433ecdb171328c3b.png)  
how do I take the hours and minutes from the date, by taking the hour the expected result is that if the employee checks in at the office later than 8 am then the status is late entering the office, if it is at 8 am or below 8 am, the employee will enter on 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: [October 24, 2024, 2:35pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/2 "2024-10-24T14:35:10Z")

</div>

Do you just want to use the hours and minutes for an IF condition?

If so, you could do something like this in a math column. It just concerts hour and minute into a number. It doesn’t necessarily represent the time, but should work just fine for an IF condition. So 8:30am would become 8.3.

```auto
HOUR(Date) +
MINUTE(Date)/100

```

---

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 24, 2024, 2:56pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/3 "2024-10-24T14:56:11Z")

</div>

thank you, it has been successfully implemented, one more question is how to take the month in an existing date and the results are in the form of text

---

<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: [October 24, 2024, 5:32pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/4 "2024-10-24T17:32:13Z")

</div>

Do you mean that you want the Month name instead of a number?

---

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 24, 2024, 5:35pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/5 "2024-10-24T17:35:29Z")

</div>

yes, the name of the month, can that be done?  
If it can’t be done, maybe I’ll use a number, and use if than else

---

<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: [October 24, 2024, 6:42pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/6 "2024-10-24T18:42:26Z")

</div>

Yes, I think using the number from `MONTH(Date)` and an IF column would be the easiest method. Other people have different methods with a few more steps, but I think the IF column is the simplest.

A Format Date column can do it too, but I feel like it can be unstable at times.

---

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 24, 2024, 11:46pm UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/7 "2024-10-24T23:46:08Z")

</div>

OK, thank you, can I ask one more thing?  
Can you determine from 06.00 to 11.00 in the morning, from 11 to 14.00 in the afternoon, from 14.00 to 18.00 in the afternoon, from 18.00 to 24.00 in the evening?  
I’ve tried with the IF column but it doesn’t work

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 25, 2024, 12:05am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/8 "2024-10-25T00:05:04Z")

</div>

As long as you have the current hour: `HOUR(Now)` in a Math column, you should be able to use an If-Then-Else on top of that to return the value Morning/Afternoon/Evening.

---

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 25, 2024, 12:41am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/9 "2024-10-25T00:41:45Z")

</div>

> [@ThinhDinh](#):
>
> `HOUR(Now)` in a Math column

yes. I have

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

is my if column correct?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/6/26154173af4fe9405fddc4cafa3ee0f1095ee6b2.png)

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 25, 2024, 12:42am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/10 "2024-10-25T00:42:37Z")

</div>

It should be in reverse, Jam \>= 18 then Evening, Jan \>= 11 then Afternoon, Jan \>= 6 then Morning.

What about midnight to 6?

---

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 25, 2024, 12:49am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/11 "2024-10-25T00:49:00Z")

</div>

> [@ThinhDinh](#):
>
> What about midnight to 6?

Yes, that’s right, midnight to 6 o’clock

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [October 25, 2024, 12:57am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/12 "2024-10-25T00:57:42Z")

</div>

I mean you haven’t accounted for midnight to 6 in your logic.

---

<div class="post-metadata">

### Author: ![agung\_taufik1](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik1/32/80541_2.png) [@agung\_taufik1](https://community.glideapps.com/u/agung_taufik1)
#### Post date: [October 25, 2024, 1:42am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/13 "2024-10-25T01:42:41Z")

</div>

Thank you @Jeff_Hager and @ThinhDinh , because of you I achieved the results I hoped for…  
I’m a new user on Glide, I still have a lot to learn, I hope you don’t feel bothered by my questions 😀

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/d/bd69a9d5d47105d18e863e26717fdcc6969a1c9b.jpeg)

---

<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: [November 1, 2024, 1:42am UTC](https://community.glideapps.com/t/takes-the-hours-and-minutes-from-the-date/77300/14 "2024-11-01T01:42:52Z")

</div>

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