The "Due Date" is the deadline to do a task. If you don't do it before that date it will appear a red message with the overdue days.
When adding or editing any task click on the "Due Date" field, near a calendar icon. A mini calendar will appear and select the day you want to be the due date, it will appear selected with a red background. To finish, click "Done".