Added date conversion functions.