Alteryx Designer Desktop Discussions

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

How to get DATE of tomorrow and day after tomorrow

Anjankumar2021
8 - Asteroid

 

 

Anjankumar2021_0-1677218175166.png

 

8 REPLIES 8
ShankerV
17 - Castor

Hi @Anjankumar2021 

 

One way of doing this.

 

ShankerV_0-1677218521028.png

The date will be dynamic based on the date you are running the workflow.

ShankerV_0-1677218598856.png

 

Use the below formula to ger the output as 25/02/2023

IF [_CurrentField_]="T1"
THEN datetimeformat(datetimeadd(datetimetoday(),1,"days"),"%d/%m/%Y")
ELSEIF [_CurrentField_]="T2"
THEN datetimeformat(datetimeadd(datetimetoday(),2,"days"),"%d/%m/%Y")
ELSE [_CurrentField_]
ENDIF

 

ShankerV_0-1677218993005.png

Many thanks

Shanker V

 

binuacs
20 - Arcturus

@Anjankumar2021 One way of doing this

binuacs_0-1677218764913.png

 

 

Raj
15 - Aurora

use formula tool

for Tomorrow -  DateTimeAdd(DateTimeToday(),1,"Days")

and for Day after tommorow -  DateTimeAdd(DateTimeToday(),2,"Days")

 

this will help

binuacs
20 - Arcturus

@Raj @Anjankumar2021 requirement was to update the column heading, dynamic rename tool is the best option, else the data should be transposed then make the changes using the formula tool then cross tab the result

Anjankumar2021
8 - Asteroid

can we skip weekends (saturday and Sunday) and get Monday (27/02/2023) as T1, Tuesday (28/02/2023) as T2. pls assist

Raj
15 - Aurora

@binuacs Thanks for sharing I took the long path 😅

binuacs
20 - Arcturus

@Anjankumar2021 One way of doing this is by transposing the data. The same formula can be applied in the dynamic rename tool as well but it till make more confusing to you, so I thought of choosing a different way which was explaining to @Raj 😀

 

binuacs_0-1677220658839.png

 

binuacs
20 - Arcturus

@Anjankumar2021 If in case you want all done by dynamic tool you can go for the below solution

 

binuacs_0-1677221376928.png

 

Labels