I have a DateTime? variable, sometimes the value is null, how can I return an empty string \"\" when the value is null or
DateTime?
null
\"\"
DateTime d?; string s = d.HasValue ? d.ToString() : string.Empty;