In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Weekend

Jessi_Ortega
6 - Meteoroid

Hello,
  I am trying to make a flow where it checks the delivery date and checks if the date is today, if it is today it outputs True Else False.

IF DateTimeFormat([Delivery Date], "%Y-%m-%d") == DateTimeFormat(DateTimeToday(), "%Y-%m-%d") THEN "True" ELSE "False" ENDIF

This works but now I also need it to check if the date falls on the weekend and if it does I want the output to say "Weekend"

4 REPLIES 4
Raj
16 - Nebula

@Jessi_Ortega 
Reffer this link - https://community.alteryx.com/t5/Engine-Works/DateTime-Functions-Cheat-Sheet/ba-p/844353

were you cab use %A to check the day to apply the flag.

 

Hope this help.

binu_acs
21 - Polaris
Jessi_Ortega
6 - Meteoroid

That worked, thank you. How about if its a holiday?

CoG
14 - Magnetar

For holidays you would need a external dataset that contains all holidays you want to consider. You can then do a join by date, every row that joins was a holiday and everything that doesn't - wasn't.

Labels
Top Solution Authors