# Wish a user Happy Birthday

**URL:** <https://forum.adalo.com/t/wish-a-user-happy-birthday/15281>\
**Category:** Get Help\
**Created:** [July 25, 2021, 9:17am UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281 "2021-07-25T09:17:08Z")\
**Posts on this page:** 7\
**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 25, 2021, 9:17am UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/1 "2021-07-25T09:17:09Z")

</div>

Hiya guys, I know this should be relatively simple but I’m getting tripped up, I’m using the Sometimes Visible condition for the text based on the User D.O.B, but I can’t quite figure out how to determine that the current day matches it, especially from the actual birthday, not like a year ago or something like that.

Think I just need a little push 🙂  
Thx

---

<div class="post-metadata">

**Author:** ![Ash1](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Ash1](https://forum.adalo.com/u/Ash1)\
**Post date:** [July 26, 2021, 12:54am UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/2 "2021-07-26T00:54:22Z")

</div>

I guess it would be something along the lines of:

Only visible if  
Logged in user DOB (property in your database)  
is equal to  
Current date

---

<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 26, 2021, 2:57pm UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/3 "2021-07-26T14:57:09Z")

</div>

Hmm yeah, that’s what I was thinking. But won’t that only match once? Say the year of birth? Maybe if there’s a way to omit the year? 🤔

---

<div class="post-metadata">

**Author:** ![Ash1](https://avatars.discourse-cdn.com/v4/letter/a/8c91f0/32.png) [@Ash1](https://forum.adalo.com/u/Ash1)\
**Post date:** [July 26, 2021, 3:16pm UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/4 "2021-07-26T15:16:06Z")

</div>

I think you’re probably correct there! A quick solution I’ve thought of could be that you have the DOB broken down into 3 properties in your database (day, month, year).

When a user signs up you can have a customer form with inputs that allows them to enter the day, month and year separately (but all updated at the same time when they press submit).

Then the conditional visibility can be based on just the day and month. What do you think?

There’s probably a better solution someone with a bit more experience than me can come up with though

---

<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 26, 2021, 3:28pm UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/5 "2021-07-26T15:28:31Z")

</div>

Clever! Definitely worth a try. Thx 🙂

---

<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 26, 2021, 3:32pm UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/6 "2021-07-26T15:32:27Z")

</div>

I believe this is the solution! Just did a quick code search and even in this Java example, it’s how it’s done 🙂 Nice one!

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/a308ab7e5dd89cd9b838c77d930d4b8a5b635f53.png)

---

<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 5, 2021, 3:33pm UTC](https://forum.adalo.com/t/wish-a-user-happy-birthday/15281/7 "2021-08-05T15:33:20Z")

</div>

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