setTime < Date < JavaScript
The setTime() method of the Date object sets the date object to the beginning of epoch time which is midnight at the beginning of January 1, 1970, UTC, and adds the specified number of milliseconds to that.
// date obj w/ today's date and time
const date = new Date();
date.setTime(500000000);
console.log(date)
//[object Date] { ... }
console.log(date.toString());
// "Tue Jan 06 1970 13:53:20 GMT-0500 (Eastern Standard Time)"