Forums

Create Datetime from Timestamps

Hello all,

I'm currently working on a script where Datetime is needed. I tried to switch my column with Timestamps to Datetimes but it didn't work. Anyone knows how this should be done? My timestamps are like this and the column is a series. 1048479 1589449137661 1048480 1589449137661 1048557 1589449137411 1048558 1589449137411 1048559 1589449137411 1048560 1589449137411

If you want to convert your timestamps to datetimes, you will need to change the column type to a datetime cloumn type. The easiest way is probably to create a new column as a datetime, then write code to convert each timestamp in the timestamp column into a datetime and place it in the new column. Then you can delete the timestamp column.