moved DateTime handling into a utils class to have a single point to manage DateTime format