pub fn render_due(
due: NaiveDate,
today: NaiveDate,
mode: LabelMode,
) -> (String, DueSeverity)Expand description
Render a due date as a label. Returns (label, severity) so the
CLI can apply colors consistently.
Dates beyond the next-six-days window always include the year so
entries from 2026 and 2027 are never mistaken for each other:
Long mode uses ISO YYYY-MM-DD; Short mode uses MM-DD when the
year matches today and YYYY-MM-DD otherwise.