In my c# code behind, when I convert
public DateTime custDOB { get; set; }
to
public DateTime? SubDOB { get; set; }
I get an error on one of my code lines
tboxDateOfBirth.Text = oCust.custDOB.ToShortDateString();
and the message reads ‘System.Nullable’ does not contain a definition for ‘ToShortDateString’ and no extension method ‘ToShortDateString’ accepting a first argument of type ‘System.Nullable’ could be found
How can I resolve this issue?
Change that line to