Join the Inspire AMA with Joshua Burkhow, March 31-April 4. Ask, share, and connect with the Alteryx community!

Alteryx Designer Desktop Discussions

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

Dates and Days

Ayaanarjun-5885
8 - Asteroid

Hi, 

 

I have a report which runs everyday. Report contains the date column as well. I get the report on every Saturday which reflects its own date. But I run it on Monday, so I want the date to be converted in output to Monday's instead of Saturday. It should give me the date of Monday on every Saturday's date. Below is the Example.

 

Input:

Date12
7/10/2023ABCXYZ

 

Output

Date12
9/10/2023ABCXYZ
2 REPLIES 2
Prometheus
12 - Quasar

@Ayaanarjun-5885 In this workflow, I parsed the date field into an actual date then found the number of the day of the week (DateTimeFormat([Date_Actual], '%u') so I could change the date of a Saturday run to the following Monday's date using this expression.

if [Day]='6'

then DateTimeAdd([Date_Actual],2,'days')

else [Date_Actual]

endif

Identify Saturday.PNG

 

 

Ayaanarjun-5885
8 - Asteroid

Thank you so much @Prometheus . It worked. 

Labels
Top Solution Authors