change datetime format to ES default format