11 lines
321 B
TypeScript
11 lines
321 B
TypeScript
/** Short date for the invited-view facts table (`6 Nov 2026`). */
|
|
export function formatInviteLastChanged(iso: string): string {
|
|
const date = new Date(iso);
|
|
if (Number.isNaN(date.getTime())) return iso;
|
|
return date.toLocaleDateString("en-GB", {
|
|
day: "numeric",
|
|
month: "short",
|
|
year: "numeric",
|
|
});
|
|
}
|