How can I convert the nullable DateTime dt2 to a formatted string?
DateTime dt = DateTime.Now; Console.WriteLine(dt.ToString(\"yyyy-MM-dd hh
Even a better solution in C# 6.0:
DateTime? birthdate; birthdate?.ToString("dd/MM/yyyy");