How can I convert the nullable DateTime dt2 to a formatted string?
DateTime dt = DateTime.Now; Console.WriteLine(dt.ToString(\"yyyy-MM-dd hh
Maybe it is a late answer but may help anyone else.
Simple is:
nullabledatevariable.Value.Date.ToString("d")
or just use any format rather than "d".
Best