function getDateAndHours(hour, minutes) {
    const date = new Date();
    date.setHours(hour);
    date.setMinutes(minutes);
    date.setSeconds(0);
    date.setMilliseconds(0);
    return date.toISOString();
  }
Helper function to get a the current date and set the time for the start and end of the event.
@param {number} hour The hour of the day for the new date.
@param {number} minutes The minutes of the day for the new date.
@return {Date} The new date.