use to_datetime to preserve milliseconds