JSFiddle - React, Tailwind, and code Playground

by sberube

JavaScript

var utcSeconds = 1534269834096 / 1000;
var d = new Date(0); // The 0 there is the key, which sets the date to the epoch
d.setUTCSeconds(utcSeconds);
window.alert(d);