const DATE_OPTIONS = { day: "numeric", month: "short", year: "numeric" };
const TIME_OPTIONS = { hour: "numeric", minute: "2-digit" };
function formatDateLabel(locale, date) {
  return new Intl.DateTimeFormat(locale, DATE_OPTIONS).format(date);
}
function formatDateRangeLabel(locale, from, to) {
  const formatter = new Intl.DateTimeFormat(locale, DATE_OPTIONS);
  try {
    return formatter.formatRange(from, to);
  } catch {
    return `${formatter.format(from)} \u2013 ${formatter.format(to)}`;
  }
}
function formatTimeRangeLabel(locale, start, end) {
  const formatter = new Intl.DateTimeFormat(locale, TIME_OPTIONS);
  try {
    return formatter.formatRange(start, end);
  } catch {
    return `${formatter.format(start)} \u2013 ${formatter.format(end)}`;
  }
}
export {
  formatDateLabel,
  formatDateRangeLabel,
  formatTimeRangeLabel
};
//# sourceMappingURL=format.js.map
