Alteryx Designer Desktop Discussions

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

2023_09 string to 2023_09_01 date

bh1789
8 - Asteroid

if I have a column called "Year_Month" and the data is in string format such as:

 

2023_09

2023_10

2024_02

2023_11

2024_04

 

how would I convert these to dates:

2023_09_01

2023_10_01

2024_02_01

2023_11_01

2024_04_01

 

Thank you!

2 REPLIES 2
ChrisTX
15 - Aurora

Try this in a Formula tool:

 

ToDate(ReplaceChar([Orig Date], "_", "-") + "-01")

 

Screenshot 2024-06-04 143729.png

 

Chris

bh1789
8 - Asteroid

Perfect!  Thank you very much!

Labels