preparing datetime columns handling