change datetime type