Improvements to date formatting.