I'm working with a javascript calendar which is very strict in it's required format. It requires dates to be in the following way:
The UTC string format I get from server = 2020-04-01T00:00:00Z
.
The calendar library I'm using requires this to be turned into a date object to be used.
let formattedstartDate: Date = new Date(2020-04-01T00:00:00Z);
// Wed Apr 01 2020 01:00:00 GMT+0100 (British Summer Time)
This works all fine but I need to convert this to GMT timezone before I send it to the calendar. All the examples I see with moment convert it to UTC but I need GMT.
Any ideas?