AnsweredAssumed Answered

Pentaho kettle convert date to unix

Question asked by Manuel b munoz on May 15, 2019
Latest reply on May 16, 2019 by Virgilio Pierini

I'm trying to pacha a string format dated "2019-05-14 13:30:00" to a UNIX format.

In javascript I got it but in the javascript kettle module I am not able to return the numeric value 1557833442

the line of code is this:

const tests = (new Date ("2019-05-14 13:30:00"). getTime () / 1000);

Outcomes