Connects 'Create Task' buttons to task edit panel

Moves common time/date manipulations to functions