corrected date conversion