function dayjsDate(value, format, timezone, options) {
  const dayjsDate = dayjs(value);
  if (!timezone) {
    return dayjsDate;
  }
  if (timezone === 'UTC') {
    timezone = 'Etc/UTC';
  }
  if ((timezone !== currentTimezone() || (format && format.match(/\s(z$|z\s)/))) && (shouldHandleTimezone(timezone) || options?.email)) {
    return dayjsDate.tz(timezone);
  }
  return dayjsDate;
}
Get the Dayjs date object for translating dates with timezones.
@param {string|Date} value - The value to convert into a dayjs date.
@param {string} format - The format to convert the date to.
@param {string} timezone - The timezone to convert the date to.
@param {object} options - The options object
@returns {dayjs.Dayjs} - The dayjs date object.