Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Designer Desktop Discussions

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

Date Help

derekthomas4
5 - Atom

How do I convert a string "033124" to be "2024-03"?

 

Thank you in advance!

3 REPLIES 3
DataNath
17 - Castor
17 - Castor

Hey @derekthomas4, there's a few ways to do this but I personally like the Formula tool option - the following expression ought to work:

 

DateTimeFormat(DateTimeParse([Input],'%m%d%y'),'%Y-%m')
Matt_D
10 - Fireball

Hi @derekthomas4 

 

Left(DateTimeParse([YOUR_VALUE], "%m%d%y"), 7) assuming I'm looking at 03 (month) 31 (day) 24 (year)?

 

Matt

derekthomas4
5 - Atom

Thank you!!!

Labels