refine getTaskStartTime and date method