How can I convert timestamp to datetime format in Dataprep?

816 views Asked by At
1

There are 1 answers

0
Donnald Cucharo On

You get an error because Dataprep expects values in Datetime, not Unix Timestamp.

To format Unix Timestamp into Datetime, you need use the function unixtimeformat().

The function accepts a 13-digit timestamp (in milliseconds). If your dataset has a timestamp below the digit, you must multiply it first accordingly. You can use another function called multiply() to create a new column. I'm using a 10-digit timestamp as sample dataset, so I multiplied it by 1000 so it becomes 13-digit.

Functions used:

MULTIPLY(column1, 1000) #creates column2

UNIXTIMEFORMAT(column2, "yyyy-MM-dd HH:mm:ss.SSS") #creates finish_date

Sample Illustration:

enter image description here