var getLocaleDate = function (param) {
    var {
      localeName = "en-GB",
      options,
      date
    } = param;
    return isDateValid(date) ? new Intl.DateTimeFormat(localeName, options ?? {
      month: "2-digit",
      year: "numeric",
      day: "2-digit"
    }).format(date) : "";
  },
  getLocaleDateTime = function (param) {
    var {
      localeName = "en-GB",
      options,
      date
    } = param;
    return 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 = function (date) {
    return date && date instanceof Date && !isNaN(date?.valueOf());
  };
export { getLocaleDate, getLocaleDateTime, isDateValid };
//# sourceMappingURL=dateHelper.native.js.map
