renamed getStartDate function