We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

DateTimeAdd

zraposoaandm
8 - Asteroid
 

Capture300b.PNG

Capture300a.PNG

 DateTime_Out in the second picture is in datetime format. When I use the function DateTimeAdd and increase DateTime_Out by 1 day, how do I get the function to spit out just yyyy-mm-dd instead of yyyy-mm-dd hh:mm:ss (00:00:00)? I don't want the hh:mm:ss

2 REPLIES 2
ScottLewis
11 - Bolide

Change the Data type from DateTime to Date. 

Alternately, you could wrap the datetime add in a datetime format like: 

 

DateTimeFormat(DateTimeAdd([DateTime_Out],1,"day"),"%Y-%m-%d")

 

but changing the type should work just fine.

zraposoaandm
8 - Asteroid

Scott, thank you so much! ran into this problem a couple times so far so it's nice to understand what was going wrong.

Labels
Top Solution Authors