Fix null date formatting