If we have to format the Nullable Date in C#, We can do like this
DateTime? date = new DateTime(2021, 05, 10, 22, 45, 12, 004);
//Will through exception
// string date_str = date.ToString("dd/MM/yyyy");
//Working Syntax:
string date_str= (date != null ? date.Value.ToString("dd/MM/yyyy") : "n/a");