Added methods to set the start date and the end date