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

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

 

binu_acs
21 - Polaris

@Anjankumar2021 One way of doing this

binuacs_0-1677218764913.png

 

 

Raj
16 - Nebula

use formula tool

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

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

 

this will help

binu_acs
21 - Polaris

@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
16 - Nebula

@binu_acs Thanks for sharing I took the long path 😅

binu_acs
21 - Polaris

@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

 

binu_acs
21 - Polaris

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

 

binuacs_0-1677221376928.png

 

Labels
Top Solution Authors