Fix date selection in task form