Date - String to YYYYMM
cb86
Registered Posts: 3 ✭✭✭
Hello,
I have a date (YYYYMM) that is being read as a string. How can i convert/parse this date to be read as a date?
Best Answer
-
"yyyy-MM" would parse dates with a '-' between the year and the month, for example "2021-01"
To parse "202101" you need to set the format to "yyyyMM" (without the '-')
Answers
-
Hello,
In a prepare recipe, you can use a Parse Date step to convert strings to date in the format you want.
-
Thank you both for your quick response. I tried to use the prepare recipe to parse the date. However, I am not seeing any results? I am doing it correctly (image attached)?
-
Thank you!