Days until Christmas

I wanted to update my Slack status with how many days until Christmas. I couldn't figure out the snippet, but AI did for me! Thanks to the hard workers at Text Blaze for all that you do! Now, can I change this so that it would automatically figure out which year I need?

{note: trim=yes}Calculate the number of days until Christmas in 2024

Today's Date: {time: YYYY-MM-DD}

Christmas Date in 2024: 2024-12-25

Days until Christmas in 2024: {=datetimediff({time: YYYY-MM-DD}, "2024-12-25", "D")} {endnote: trim=yes}
:deer: {=datetimediff({time: YYYY-MM-DD}, "2024-12-25", "D")} until Christmas :christmas_tree:

1 Like

Hi @Santa_Laren,

You try this snippet which gets the number of days left for Christmas :christmas_tree: in the current year.

{note: trim=yes}Calculate the number of days until Christmas in {time: YYYY}

Today's Date: {time: YYYY-MM-DD}

Christmas Date in {time: YYYY}: {time: YYYY}-12-25

Days until Christmas in {time: YYYY}: {=datetimediff({time: YYYY-MM-DD}, {time: YYYY} & "-12-25", "D")} {endnote: trim=yes}
:deer: {=datetimediff({time: YYYY-MM-DD}, {time: YYYY} & "-12-25", "D")} until Christmas :christmas_tree:

1 Like

Thanks Ashwin!