Prepare two date time format.