improved date formatting in method