Add date conversion function body