changes the getDate method in EditTaskView to getDateField