i've been working with an api that returns the time in an UTC offset like '7000' in seconds, im trying to pass to a date like '2020-01-01T01:56:40.000Z' or time like '1:12:03 PM'
i have tried this but returns a wrong date, as if i was giving it a value in ms
var utcSeconds = 7000;
var d = new Date(7000);
console.log(d); // 1970-01-01T00:00:07.000Z
All i've been able see online is the oposite proccedure or different procedure, hope you can help me, Thanks!
yourfn('2020-01-01T01:56:40.000Z')oryourfn('1:12:03 PM')return?