I need a function to get UTC date-time. I passed only the date, time and time zone name only. I need to get the UTC time and date. Thank You
Ex:
const utcDate = getUTCDateTime("2022-05-10","18:00" "America/Hermosillo");
// OutPut should be like this ==>> 2022-05-11T01:00:00.527Z
function getUTCDateTime(date,time, timeZoneName){
//Logic
return utcDate;
}