# Time Range Without Date

**URL:** <https://forum.bubble.io/t/time-range-without-date/266229>\
**Category:** Need help\
**Created:** [June 5, 2023, 6:20pm UTC](https://forum.bubble.io/t/time-range-without-date/266229 "2023-06-05T18:20:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan.beneker](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bryan.beneker](https://forum.bubble.io/u/bryan.beneker)\
**Post date:** [June 5, 2023, 6:20pm UTC](https://forum.bubble.io/t/time-range-without-date/266229/1 "2023-06-05T18:20:17Z")

</div>

I’m trying to create simple conditionals with times ranges so that based on the time of day, the app will say “Good morning/Good afternoon, Good Evening, Current User.” The arbitrary time option works well, but Bubble forces a date into this. That makes it work for only one day.

How can I remove the date from the time? I just want to say, “If it’s from midnight to 11:59:59, it’s morning.” I have the range formula down (time\<- range → time contains point Current date/time

I just need the simple time variables.

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [June 5, 2023, 6:30pm UTC](https://forum.bubble.io/t/time-range-without-date/266229/2 "2023-06-05T18:30:50Z")

</div>

Hi there, @bryan.beneker… here are a couple of threads that should help you do what you described.

> [@Display text based on current time?](http://forum.bubble.io/t/display-text-based-on-current-time/72684):
>
> Is there a way to display a dynamic greeting such as “Good morning” “Good afternoon” or “Good evening” based on the user’s current time?

> [@Display a text based on current time of day](http://forum.bubble.io/t/display-a-text-based-on-current-time-of-day/111887):
>
> Hi, I would like to display a ‘Good morning @current users name’ at a certain time of the day, and that it automatically changes to ‘Good afternoon…’ lets say 12:00 (European time format) I know how to connect the logged in users name to the text message, but I can’t get the conditions to work - to make that message change depending on the time of the day. I’m using the “current date/time:extract: hour \<12 and current date/time:extract: hour \>6” condition. Then I choose what text to display. …

Best…  
Mike

---

<div class="post-metadata">

**Author:** ![bryan.beneker](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bryan.beneker](https://forum.bubble.io/u/bryan.beneker)\
**Post date:** [June 5, 2023, 7:40pm UTC](https://forum.bubble.io/t/time-range-without-date/266229/3 "2023-06-05T19:40:49Z")

</div>

Hey @mikeloc ! Sorry, I was working through another problem that was giving me fits. Thank you for passing this along. I will take a look at this and get back to you!

---

<div class="post-metadata">

**Author:** ![bryan.beneker](https://avatars.discourse-cdn.com/v4/letter/b/3d9bf3/32.png) [@bryan.beneker](https://forum.bubble.io/u/bryan.beneker)\
**Post date:** [June 6, 2023, 12:24pm UTC](https://forum.bubble.io/t/time-range-without-date/266229/4 "2023-06-06T12:24:04Z")

</div>

@mikeloc Thank you for pointing these out to me! They certainly did the trick!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [August 14, 2023, 6:20pm UTC](https://forum.bubble.io/t/time-range-without-date/266229/5 "2023-08-14T18:20:39Z")

</div>

Closed on August 14, 2023, 6:20pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
