got a timezone issue with a javascript date which displays the day before when changing the timezone from GMT to EST. I've imported momentjs to help with this although my attempt is failing with the following code. any suggestions?
original code is
thisDate = new Date(myVar); // original
New attempt to correct the timezone difference.
thisDate = moment(thisDate).utc().format();
Many thanks,
UPDATE
var myDate = new Date(myVar);
var displayDate = moment(myDate).zone('+0100').format('YYYY-MM-DD HH:mm');