Convert Month and Year columns to a date type

marychetti11
Level 1
Convert Month and Year columns to a date type

I have 2 columns containing Months and Years. I am able to get Years to read as a date but I can't figure out how to get the Month to read as a month to combine into 1 column.

 

MonthYear
String

date

textdate
February2023
May2023
November2023
0 Kudos
1 Reply
Turribeach

Add a step a in prepare recipe and add a formula processor. Then use this formula:

asDate(concat(Year, '-' , Month, '-01'), 'yyyy-MMM-dd')

 and you will get a full date data type.

0 Kudos