Important Community update: The process for changing your account details was updated on June 25th. Learn how this impacts your Community experience and the actions we suggest you take to secure your account here.

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

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