how to convert utc to est in javascript moment.js code example
Example 1: convert utc time to local time moment
const date = moment.utc().format();
console.log(date, "- now in UTC");
const local = moment.utc(date).local().format();
console.log(local, "- UTC now to local");
Example 2: convert moment date to utc format moment
moment(timestamp).toISOString(true)
Example 3: moment get timezone
var tz = moment.tz.guess();