javascript date ms since epoch code example
Example 1: javascript today date in epoch
const start = Date.now();
/*gives the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC.*/
Example 2: get milliseconds since epoch for 12am today javascript
var d = new Date();
d.setUTCHours(0,0,0,0);
console.log(+d);