Handled 2 cases where user can choose to edit either time or task
syntax: edit date index specification(time/task) modification