Skip to main content

Calendar view of birthdays

  • August 17, 2016
  • 27 replies
  • 378 views

Show first post
This topic has been closed for replies.

27 replies

Forum|alt.badge.img
  • New Participant
  • January 15, 2024
I was able to get this to work. I used a slightly diffferent formula. 
 
IF(
{Birthday},
DATETIME_PARSE(
MONTH({Birthday}) & "/" & DAY({Birthday}) & "/" & YEAR(TODAY()),
'MM/DD/YYYY'
)
)


This is very simple and grabs the month, day and current year. The IF statement prevents blanks from showing up as January 1st.  The DATEPARSE is needed to allow the calendar widget and other views to give you date options. 

Forum|alt.badge.img+3
  • New Participant
  • September 4, 2024

Used the above example and added formulas so that it would automatically change the YEAR to the following year for dates that have passed. This way you don't have to reset the year every January. Works great in Calendar and there is a great Grid view for this as well:

IF(
    {Date of Birth},
    IF(
        MONTH({Date of Birth}) < MONTH(TODAY()),
        DATETIME_PARSE(
            MONTH({Date of Birth}) & "/" & DAY({Date of Birth}) & "/" & (YEAR(TODAY()) + 1),
            'MM/DD/YYYY'
        ),
        IF(
            AND(
                MONTH({Date of Birth}) = MONTH(TODAY()),
                DAY({Date of Birth}) <= DAY(TODAY())
            ),
            DATETIME_PARSE(
                MONTH({Date of Birth}) & "/" & DAY({Date of Birth}) & "/" & (YEAR(TODAY()) + 1),
                'MM/DD/YYYY'
            ),
            DATETIME_PARSE(
                MONTH({Date of Birth}) & "/" & DAY({Date of Birth}) & "/" & YEAR(TODAY()),
                'MM/DD/YYYY'
            )
        )
    ),
    BLANK()
)