String to date/time question

Hi,
Here is a sample of my data set. I have column “Date” that is formatted as a String that I need converted to a date.
image

On the String Date&Time node I have it configured as follows:


Yet it results in an error:

I have the String Date&Time (Legacy) node configured the same way:
image

And it results in the node being completed:
image

Am I missing something as to why the current String to Date & Time node is not completing?

Thanks for your help

Hi @Snowy -

Try M/d/yyyy instead (single digits for month and day). This should then work in the current node.

Sorry for the trouble.

5 Likes

Hi!
I have another String to Date/Time question I can’t seem to figure out.

The dates are formatted such as: Nov 04, 2018

Based on the documentation from: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html I thought the expression should then be: “M/L dd, yyyy” however I receive an error.
image


Thanks for your help

Hi @Snowy -

For this case, use MMM d, yyyy. I just tested, and it should work.

2 Likes