the problem is as follows:
The file that i receive has a timestamp like
06/10/2016 02:58 AM
06/10/2016 05:20 PM
etc.
I'm using pentaho/kettle to eventually put this into a mysql database, the problem is that mysql only accepts yyyy-mm-dd hh-mm-ss
timestamps. I'm not that great(if at all) in JavaScript and Kettle only support javascript, sadly.
I got it all split up, so it has a column called, 'days','months,'years', etc.
How can I make it so that if column Am/pm has "pm" in it, that it add 12 to the 'hours' column?
Or is there an easier way to do this in Kettle?
EDIT:
as i receive the csv i have 5 columns
1. Timestamp 2. Mobil_origin 3. mobile_Dest. 4.Call_cit 5.Call_dur
I want it so that all the timestamps get 'corrected' to the yyyy-mm-dd hh-mm-ss format.
so instead of 06/10/2016 05:20 PM
it has to show 2016-10-06 17:20:00
It's the only thing that needs to happen actually, the rest of the file is good as is to be exported to mysql.