changed return values to only return lastdayDate when selectWeek is true