/** * CRA dates and deadlines used in the admin app. * Source of truth: docs/cra-facts.md (Regulation (EU) 2024/2847, Art. 14 and 71). */ export const CRA_DATES = { entryIntoForce: '2024-12-10', reporting: '2026-09-11', fullApplication: '2027-12-11', } as const; /** True once the given ISO date (UTC midnight) has passed. */ export function hasStarted(isoDate: string, now: Date = new Date()): boolean { return now.getTime() >= Date.parse(`${isoDate}T00:00:00Z`); } /** "11 September 2026" style, fixed to UTC so the legal date never shifts. */ export function legalDate(isoDate: string): string { return new Date(`${isoDate}T00:00:00Z`).toLocaleDateString('en-GB', { day: 'numeric', month: 'long', year: 'numeric', timeZone: 'UTC', }); }