Advent of Code is now back for a limited time only! Complete as many challenges as you can to earn those badges you may have missed in December. Learn more about how to participate here!
Start Free Trial

Alteryx Designer Desktop Discussions

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

Year Difference

Johmz
8 - Asteroid

Hi,

 

I need help for the formula on how to compute if the Input date is less than 1 year from today

4 REPLIES 4
dkungu
8 - Asteroid

Try to get the difference in months between today and user input date 2024-07-08_YTD.png

Johmz
8 - Asteroid

I need to identify the exact date.. Like if today's date is 07/07/2024 then minus 1 year  answer should be 07/07/2023.

Johmz
8 - Asteroid

How to convert this in formula

 

Today's date - 1 year = "mm-dd-yyy"

ex. 07/07/2024 - 1 year = 07/07/2023

danilang
19 - Altair
19 - Altair

hi @Johmz 

 

Use 

DateTimeDiff(DateTimeToday(),[Field1],"years")

R.png

 Dan

Labels
Top Solution Authors