private string ParseDate(string date) { if (date == null) { return(null); } return(DateTime.TryParse(date, out var result) ? DateTimeFormatter.ToShortDate(result) : date); }