Changed data type of startingTime and endingTime