export const formatDate = (iso: string | null | undefined): string => {
  if (!iso) return '—';
  return new Date(iso).toLocaleDateString('fr-FR');
};

export const formatDateTime = (iso: string): string =>
  new Date(iso).toLocaleString('fr-FR');
