Add trimming for different end dates in case data is truncated.