JSFiddle - React, Tailwind, and code Playground

by Trevor W

JavaScript

let d = new Date("2020-07-08");
let e = new Date("2020-07-08 EST");

console.log("Without EST",d);
console.log("With EST",e);

console.log("Without EST: "+d.getMonth()+"-"+d.getDate());
console.log("With EST: "+e.getMonth()+"-"+e.getDate());