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

Adding days to DateTimeDiff

johneodell
8 - Asteroid

If I need to add 10 days to a DateTimeDiff result, should the following work?

 

DateTimeDiff(dt1,dt2,"days") + 10

4 REPLIES 4
JosephSerpis
17 - Castor
17 - Castor

Hi @johneodell if you field is a numeric field though adding 10 should work.

johneodell
8 - Asteroid

@JosephSerpis 

That's what I thought.  The field type is "Double" so I should be able to just add 10 days, but neither solution is working for me.

JosephSerpis
17 - Castor
17 - Castor

Hi @johneodell I managed to get it working using your syntax are you creating a new field or updating in your formula tool also is date in the format YYYY-MM-DD?

 

Datediff_200420.JPG

johneodell
8 - Asteroid

@JosephSerpis That was it! One of my dates was formatted incorrectly. I just needed an outside perspective. Thanks!!

Labels
Top Solution Authors