Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Discussions

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

How to calculate # of days between 2 days

5tac3y111
5 - Atom

Hi, 

 

My start date is in the data format dd/MM/yyyy, but the end date is in the format MM/yyyy. In this case, how shall I calculate the # of days between the start and end date? 

 

Also, how to add dd to my end date? assuming using the first day of the month. 

 

Thank you.

2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @5tac3y111 

 

You can use this formula

datetimediff(datetimeparse([enddate], '%m/%Y'), datetimeparse([startdate], '%d/%m/%Y'), 'days')

 

Felipe_Ribeir0_0-1669849793770.png

 

grazitti_sapna
17 - Castor

@5tac3y111 , here is a complete workflow if this is what you needed. You can firstly convert your dates to datetime format supported by Alteryx using DateTime tool and then find the difference.

grazitti_sapna_0-1669868164802.png

 

Sapna Gupta
Labels