Fixed date formatting error