const getLocaleDate = ({
    localeName = "en-GB",
    options,
    date
  }) => isDateValid(date) ? new Intl.DateTimeFormat(localeName, options ?? {
    month: "2-digit",
    year: "numeric",
    day: "2-digit"
  }).format(date) : "",
  getLocaleDateTime = ({
    localeName = "en-GB",
    options,
    date
  }) => isDateValid(date) ? new Intl.DateTimeFormat(localeName, options ?? {
    year: "numeric",
    month: "2-digit",
    day: "2-digit",
    hour: "2-digit",
    minute: "2-digit",
    hour12: !1
  }).format(date) : "",
  isDateValid = date => date && date instanceof Date && !isNaN(date?.valueOf());
export { getLocaleDate, getLocaleDateTime, isDateValid };
//# sourceMappingURL=dateHelper.mjs.map
