A date conversion class written in PHP