ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
解決済み

How to get five year back date

swethav
メテオロイド

I want five years back date for date column yyyymmdd .

Like if I have date as 20230618 I want it as 20180618

 

 

3件の返信3
atcodedog05
22 - Nova
22 - Nova

Hi @swethav 

 

Here is a workflow for the task.

Formula: change [field1] to column name

 

DateTimeFormat(DateTimeAdd(DateTimeParse([Field1],"%Y%m%d"),-5,"years"),"%Y%m%d")

 

Output:

 

atcodedog05_0-1605813389243.png

 

Workflow:

atcodedog05_0-1605813310480.png

Hope this helps 🙂


If this post helps you please mark it as solution. And give a like if you dont mind 😀👍

swethav
メテオロイド

Thank you . I got it 

atcodedog05
22 - Nova
22 - Nova

Happy to help 🙂 @swethav 

 

Cheers and Happy Analyzing 😀

 

Feel free to reach out if you face any other issues 🙂

ラベル
トップのソリューション投稿者