That will output a 1 when the month and date of the birthday match the current day, and a 0 at all other times. It’s worth noting, though, that TODAY() is based on the current date in GMT, not your local timezone. Depending on where you live, there will probably be some crossover, but it’s going to change at a time other than midnight in your local timezone unless you also live in GMT.
One way around that is to use NOW() instead, and wrap that in SET_TIMEZONE() to force it to your local timezone before formatting. Here’s an example using my local timezone:
@Justin_Barrett Just another quick question in the following formula is there a way that if {Partner Date of Birth} is blank it always returns a 0?
DATETIME_FORMAT({Partner Date of Birth}, “MMDD”) = DATETIME_FORMAT(TODAY(), “MMDD”)
this is because if a client in the base is single, they will not have a partner
@Justin_Barrett Just another quick question in the following formula is there a way that if {Partner Date of Birth} is blank it always returns a 0?
DATETIME_FORMAT({Partner Date of Birth}, “MMDD”) = DATETIME_FORMAT(TODAY(), “MMDD”)
this is because if a client in the base is single, they will not have a partner
Yes. Wrap the first part of that formula in an IF() function so that it’s only executed if {Partner Date of Birth} isn’t empty:
IF({Partner Date of Birth}, DATETIME_FORMAT({Partner Date of Birth}, "MMDD")) = DATETIME_FORMAT(TODAY(), "MMDD")
If there’s no partner date of birth, that IF() function will return an empty string, which won’t match the formatted version of TODAY(), meaning the field will output a 0.
Yes. Wrap the first part of that formula in an IF() function so that it’s only executed if {Partner Date of Birth} isn’t empty:
IF({Partner Date of Birth}, DATETIME_FORMAT({Partner Date of Birth}, "MMDD")) = DATETIME_FORMAT(TODAY(), "MMDD")
If there’s no partner date of birth, that IF() function will return an empty string, which won’t match the formatted version of TODAY(), meaning the field will output a 0.
Oh, I remember I wanted to do this too! However, I don’t remember the exact formula, because I made it too complicated….
Oh, I remember I wanted to do this too! However, I don’t remember the exact formula, because I made it too complicated….
I had a crazy idea to make Airtable notify me the week before somebody’s birthday, so I could order a gift basket with flowers and candies. Anyways, you should probably use an if-cycle. For example, the formula could look like this: if the date of today corresponds with somebody’s birthday => send a birthday email. It should not be hard.
Hello,
maybe I am late on the question.
Why not use a View called "Today birthdays" and automate on the event "When record enters view"?
Or you can make an automation that starts at midnight for example where "Birthday Date" field is equal to "today".