To add a due date to a to-do, open the Schedule (Project > Plan > Schedule).
Then, select a to-do to open the sidebar shown below:
Clicking out of the pop-up panel will save your changes. By default, the due date of the to-do is the end date of its task.