Update date and datetime selectors. Ensure that pending tasks are listed in ascending order.