How to change a string into a date format?

Hello everyone,
I need some help.
I have a string of type 20210325 that I need to transform into a date of type 2021-03-25 or better yet 25-03-2021. I have tried using the String to Date&Time node but it fails to perform this operation and therefore gives me an error output.
Could you please help me?
Thank you,
Camilla

Hi Camilla,

you could use the Palladian Date Extractor for this, which would automatically determine the proper date format for you and then convert it back to a string in the desired format using Date&Time to String node using the format specifier yyyy-MM-dd.

Hope this helps!

– Philipp

Here’s a link to an example workflow on my NodePit Space:

3 Likes

Thanks for your help!
I installed the Palladian extension and managed to solve the problem… thanks again!!!

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.