How to convert unix epochtime into human readable format?

i extracted “created at” data from tiktok and it gave me this 1667906040.

How do convert this into date format ? i’ve tried reading luxon docs but it gave me 20 JAN 1970.

it should have been Tuesday, November 8, 2022 11:14:00 AM

i want it to convert into DATE or some format so i can extract the week.

Thanks !

You can use JavaScript.

if (p2 === undefined) { return undefined; }
let d = new Date(p1);
d.setTime(p2*1000);
return d.toUTCString();

1 Like

what is the value of “current time” ? is in time only format ?

thanks darren!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.