function parseDate(input) { return new Date(input); // Note: months are 0-based } parseDate("2021-02-26T11:30:00.000Z")