Due dates, overdue and stats (Todo App)

Add due <id <YYYY-MM-DD (<id due <date), today <YYYY-MM-DD (today is <date) and stats. A task with a due date shows (due <date) at the end, plus !overdue if it is not done and its date is before today. stats prints total <n done <n active <n overdue <n.

Input: As before.

Output: As before.

Difficulty: Medium. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Dates in YYYY-MM-DD form compare correctly as plain strings.

More Todo App practice