# Different greeting based on time

**URL:** <https://forum.adalo.com/t/different-greeting-based-on-time/15185>\
**Category:** Get Help\
**Created:** [July 22, 2021, 10:32am UTC](https://forum.adalo.com/t/different-greeting-based-on-time/15185 "2021-07-22T10:32:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tbel/32/11159_2.png) [@tbel](https://forum.adalo.com/u/tbel)\
**Post date:** [July 22, 2021, 10:32am UTC](https://forum.adalo.com/t/different-greeting-based-on-time/15185/1 "2021-07-22T10:32:17Z")

</div>

Hiya guys, so I’ve been combing over a couple threads here based on the topic but can’t quite get this working and the topics are closed unfortunately.

This one [Variables and conditional logic? - #2 by Erik](https://forum.adalo.com/t/variables-and-conditional-logic/9706/2) seems to have a solution using UNIX Timestamps, I tried this (probably incorrectly :)) but I can’t seem to get it working.

Anyone have any tips/suggestions on how to approach this?

Thx much

---

<div class="post-metadata">

**Author:** ![Erik](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/erik/32/7849_2.png) [@Erik](https://forum.adalo.com/u/Erik)\
**Post date:** [July 22, 2021, 1:54pm UTC](https://forum.adalo.com/t/different-greeting-based-on-time/15185/2 "2021-07-22T13:54:42Z")

</div>

@Victor might be the best guess for this.

---

<div class="post-metadata">

**Author:** ![Victor](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/victor/32/2054_2.png) [@Victor](https://forum.adalo.com/u/Victor)\
**Post date:** [July 22, 2021, 3:12pm UTC](https://forum.adalo.com/t/different-greeting-based-on-time/15185/3 "2021-07-22T15:12:20Z")

</div>

Hi @tbel,

This question is more complex than it seems at a glance 🙂

To start with: as I know, internally Adalo stores dates as numbers, where integer part is number of days since 01/01/1970, and decimal part is the “fraction of the day passed”. Also, the date-time is stored in UTC+0.  
So number like 18788.875 means the date 12 June 2021, 9:00 PM UTC.

If your users are in the same time zone, then you can calculate the fractions for morning, afternoon, evening for this exact time zone, and then provide greeting based on that (I assume you know how to strip off the integer part of Current time).

But if your users are in different time zones, then everything becomes pretty complex, as you need to understand in which time zone user is in.

This is a good idea for a video tutorial 🙂

Best regards, Victor.

---

<div class="post-metadata">

**Author:** ![tbel](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tbel/32/11159_2.png) [@tbel](https://forum.adalo.com/u/tbel)\
**Post date:** [July 22, 2021, 3:29pm UTC](https://forum.adalo.com/t/different-greeting-based-on-time/15185/4 "2021-07-22T15:29:22Z")

</div>

@Victor Oh yes please! Adalo is my 1st real go at a no code app or really app dev in general so I’m pretty green here 🙂 I’m an artist/athletic coach 😃

But yeah, this would make an excellent tutorial, as it’s clearly pretty complex, my users will be starting off in EST for now, but yeah eventually, hopefully globally.

I can see extending beyond simple greetings. Things like wishing users Happy Birthday and such!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [August 1, 2021, 3:29pm UTC](https://forum.adalo.com/t/different-greeting-based-on-time/15185/5 "2021-08-01T15:29:48Z")

</div>

Closed on August 1, 2021, 3:29pm UTC

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