Fixed date formatting issues