Added some date conversion utilities.