Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
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?
"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 '-')
Hello,
In a prepare recipe, you can use a Parse Date step to convert strings to date in the format you want.
Hi @cb86 and welcome to the Dataiku Community. In addition to @Cรฉlian's excellent explanation I believe this thread should help as well: String dates to datetime format
I hope this helps!
"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 '-')
Thank you!