export const CURRENT_DATE = new Date("2026-05-26T12:00:00+02:00");

export const DATE_FORMAT_FR = new Intl.DateTimeFormat("fr-FR", {
  day: "numeric",
  month: "long",
  year: "numeric"
});

export function formatDateFr(date: Date | string) {
  return DATE_FORMAT_FR.format(typeof date === "string" ? new Date(date) : date);
}

export function formatMonthYearFr(date: Date | string) {
  return new Intl.DateTimeFormat("fr-FR", {
    month: "long",
    year: "numeric"
  }).format(typeof date === "string" ? new Date(date) : date);
}
