export function formatDraftDate(date: Date = new Date()): string { const year = date.getFullYear(); const month = String(date.getMonth() + 1).padStart(2, "0"); const day = String(date.getDate()).padStart(2, "0"); return `${year}_${month}_${day}`; } export function formatStatusDate(dateString: string): string { try { const date = new Date(dateString); if (Number.isNaN(date.getTime())) { return "—"; } return new Intl.DateTimeFormat(undefined, { month: "short", day: "2-digit", hour: "2-digit", minute: "2-digit", hour12: false, }).format(date); } catch { return "—"; } }