Some fixes in printing the date