Added methods to print the DateObject in the desired output format