Assume, the user is in a timezone quite different from UTC and the date range should be converted to UTC.
const event = new Date('22 April 2020 12:22 UTC'); console.log(event.toString()); console.log(event.toISOString());
The toISOString() method returns a string in extended ISO format (ISO 8601). The timezone is zero UTC offset as indicated by the suffix "Z". It does not take any parameter and only used along with a Date object.