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

Date manipulation

EvansM
9 - Comet

Hello, 

 

I need a help to add a day on the date. Please refer attached doc, also see the example below 

 

The scenario is when [DISCONNECTION_DATE] is null, I want to be populated with [CONNECT_DATE] +  1 day

 

Data sample

EvansM_0-1634843165818.png

 

Expected Results

EvansM_1-1634843279490.png

 

 

3 REPLIES 3
apathetichell
20 - Arcturus

if isnull([disconnection_date]) then datetimeadd([connect_date],1,"days") else [disconnection_date] endif (in formula tool - modifying [disconnection_date])

 

note - you'll need both fields to be dates to do that.

EvansM
9 - Comet

@apathetichell How can you do this with string data type? 

apathetichell
20 - Arcturus

The attached shows you the fastest way to get there - but you should practice with the date/time tool and watch the video on date/time here:

https://community.alteryx.com/t5/Interactive-Lessons/DateTime-Functions/ta-p/98952

Labels
Top Solution Authors