add the begin date and end date