Let’s talk Alteryx Copilot. Join the live AMA event to connect with the Alteryx team, ask questions, and hear how others are exploring what Copilot can do. Have Copilot questions? Ask here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Trying to subtract one day from DateTimeToday

cstafford
8 - Asteroid

I am trying to subtract one day from todays date (DateTimeToday) and not successful. I am using the formula tool to create two new date columns. One of which is labeled TODAY (DateTimeToday) and the second called YESTERDAY. However, I thought this formula would work but not having much luck

 

TODAY = DateTimeToday() 

 

YESTERDAY = [TODAY]<DateTimeAdd(ToDate(DateTimeNow()),-1,"days")

 

The output is ZERO.

1 REPLY 1
cstafford
8 - Asteroid

Figured this out:

 

DateTimeAdd([TODAY],-1,"days")

 

 

Labels
Top Solution Authors