Fix date formatting for null dates