Using 'if' scripting with dates

Hi. I’m trying to use the ‘if’ function in Shortcuts as a condition for the shortcut but I’m running into a problem.

I want to say if date is 4th of April then send message. I want this to be for every year rather than just for 4th of April 2022.

Is there a way to do this that it recognises it’s the 4th of April regardless of which year it is?

Hope this makes sense!

You can use Format Date to output only day and month. Then use that value on the If condition.


Thanks for that! That’s really helpful!