String to Date/Time with nanoseconds

Hi,

I have the following date:

22-MAY-16 12.59.56.723000000 PM

As you can see, it has the nanoseconds.

But SimpleDateFormat, which KNIME uses for the String to Date/Time node, only supports up to milliseconds.

How can I parse my date?

Cheers,

Ken

Does KNIME java snippets support Java 8?

Yes, it does.

Since the Java Snippet only supports Date and not LocalDateTime (from Java 8) as a Java Type as an output variable,

I had to convert from LocalDateTime to Date, keeping only the milliseconds and losing the nanos.

Cheers,

K