JSFiddle - React, Tailwind, and code Playground
JavaScript
var b = new Date(2013, 9, 20, 0, 0, 0);
var bt = b.getTime();
var bof = b.getTimezoneOffset(); // in hours
var m = 60*1000; // minutes * miliseconds
var utctime1 = bt - bof*m;
var utctime2 = Date.UTC(2013, 9, 20, 0, 0, 0);
console.log(utctime1 == utctime2);