Added a method to reformat the date and time