# Date & Time component without a year

**URL:** <https://community.glideapps.com/t/date-time-component-without-a-year/69221>\
**Category:** Ask for Help\
**Created:** [January 3, 2024, 11:15pm UTC](https://community.glideapps.com/t/date-time-component-without-a-year/69221 "2024-01-03T23:15:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![absolutenathan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/absolutenathan/32/61679_2.png) [@absolutenathan](https://community.glideapps.com/u/absolutenathan)\
**Post date:** [January 3, 2024, 11:15pm UTC](https://community.glideapps.com/t/date-time-component-without-a-year/69221/1 "2024-01-03T23:15:30Z")

</div>

I want to add a birthday system to my app, and the app will detect if the date is the same as today and it will show a happy birthday message. However, the date & time picker won’t let us remove the year, which means that every year the date would need to be updated.

Basically, the date picker needs to be like mm/dd instead of mm/dd/yyyy. Is there any way I can do that?

Thanks!

---

<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:** [January 3, 2024, 11:18pm UTC](https://community.glideapps.com/t/date-time-component-without-a-year/69221/2 "2024-01-03T23:18:20Z")

</div>

You can just keep the date picker setup, and add a math column with the formula:

> MONTH(B)\*10^2+DAY(B)-MONTH(N)\*10^2-DAY(N)

with B being the birthday, N being the “Now” value.

If it results in 0, then show the message, else don’t show anything.

---

<div class="post-metadata">

**Author:** ![absolutenathan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/absolutenathan/32/61679_2.png) [@absolutenathan](https://community.glideapps.com/u/absolutenathan)\
**Post date:** [January 5, 2024, 4:17pm UTC](https://community.glideapps.com/t/date-time-component-without-a-year/69221/3 "2024-01-05T16:17:57Z")

</div>

This worked! Thank you!

---

<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:** [January 12, 2024, 4:18pm UTC](https://community.glideapps.com/t/date-time-component-without-a-year/69221/4 "2024-01-12T16:18:45Z")

</div>

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