I have a date/time with a timezone and want to convert it into UTC
const date = '2019-04-10T20:30:00Z';
const zone = 'Asia/Kuala_Lumpur';
const utcDate = moment(date).tz(zone).utc().format();
console.log('UTC Date : ', utcDate);
is my date variable is in standard formate for UTC? How to cast this time zone to another time zone?
'2019-04-10T20:30:00Z'
is already the standard format for that datetime in UTC? And that when you cast it to Asia time, it's wrong becasue you assume '2019-04-10T20:30:00Z' is local time? – Uncurl