Bring your best ideas to the AI Use Case Contest! Enter to win 40 hours of expert engineering support and bring your vision to life using the powerful combination of Alteryx + AI. Learn more now, or go straight to the submission form.
Start Free Trial

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
16 - Nebula
16 - Nebula

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
Top Solution Authors