date conversion done for device