Changed the 'dueDate' variable to 'dateDue' to fit in with new date handling setup.