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

General Discussions

Discuss any topics that are not product-specific here.
SOLVED

string date

rbanola1
7 - Meteor

I want to convert Y21 (string) to 2021, Y17 to 2017 format in alteryx, can anyone please guide me on this?

4 REPLIES 4
DataNath
17 - Castor
17 - Castor

Hey @rbanola1, there's a bunch of ways you could do this. One would be a Formula tool with the following expression:

 

 

DateTimeYear(DateTimeParse([Incoming],'Y%y'))

 

Just replace [Incoming] with whatever your field is called.

 

rbanola1
7 - Meteor

Awesome it worked bro thank you

caltang
17 - Castor
17 - Castor

Hi @rbanola1 - could you help mark @DataNath's solution as accepted? This helps close the post and helps others to find the answer faster + know that it works.

 

Thanks! 😁

Calvin Tang
Alteryx ACE
https://www.linkedin.com/in/calvintangkw/
rbanola1
7 - Meteor

done

Labels
Top Solution Authors