Improved date formatting