Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Current date minus one business day

Saravanan13
8 - Asteroid

Hello All,

 

I need a formula to derive previous business date  from current date. Can anyone assist.

 

Example -

 

Input

Today's date - 08/21/2023

 

Output -

Previous business date - 08/18/2023

4 REPLIES 4
Prometheus
12 - Quasar
PhilipMannering
16 - Nebula
16 - Nebula

This should get you what you need,

image.png
PhilipMannering
16 - Nebula
16 - Nebula

FYI, if you're input comes in as a static string then you can use,

DateTimeParse([Input_Field], '%m/%d/%Y')

To first convert it to a date. See attached 

Saravanan13
8 - Asteroid

Hello Prometheus,

 

Thanks for the reply, But I don't need business dates with in a date range it would be always current date minus one day which should be business date.

 

Labels
Top Solution Authors