Set datestrings and timestrings into timeperiod and added timeperiod to task