Fix date formatting issues