How can I convert the nullable DateTime dt2 to a formatted string?
DateTime dt = DateTime.Now; Console.WriteLine(dt.ToString(\"yyyy-MM-dd hh
RAZOR syntax:
@(myNullableDateTime?.ToString("yyyy-MM-dd") ?? String.Empty)