change type of start and end date as date