I'm trying to create a date formula with the next/upcoming birthdate from a staff profile with Date of Birth. I need this to be formatted as a date so I can use it in a calendar, which has proven to be more difficult than I anticipated. Here are 2 ways I have gone about it. Any suggestions?
Attempt #1:
DOB is Staff member's Date of Birth:
IF(DOB = BLANK(),BLANK(), DATETIME_PARSE((((MONTH(DOB) & "/") & DAY(DOB)) & "/") & YEAR(TODAY())))
-the result is shy by 1 day. Birthdate of 4/12/__ is showing up as 4/11/23. It is recognized in Airtable as a date though. I just can't figure out why it fails. I believe it could be linked to timezone, but I don't have time on DOB or the formatting for the birthday field. Also, this really only creates birthdays for 2023. Some January birthdays are in the past and don't show up in 2024. Not a major issue but still problematic. So I tried the option below...
Option 2: Calculates correctly but I can't get it to be 'seen' as a date by Airtable:
IF(DATETIME_PARSE((((MONTH(DOB) & "/") & DAY(DOB)) & "/") & YEAR(TODAY())) < TODAY()
,
DATETIME_FORMAT(DATEADD(Birthday, VALUE(ARRAYJOIN(1)), "years"), "M/D/YYYY")
,
DATETIME_FORMAT((DATETIME_PARSE((((MONTH(DOB) & "/") & DAY(DOB)) & "/") & YEAR(TODAY()))), "M/D/YYYY"))
Any formula wizards have a suggestion here?