moment to utc timestamp code example
Example 1: convert unix timestamp to date using moment
var dateString = moment.unix(value).format("MM/DD/YYYY");
Example 2: 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");