I have the following code:
DateTime? toDate = null;
DateTime.TryParseExact(toDateTextBox.Text, "dd-MM-yyyy", null,
                       System.Globalization.DateTimeStyles.None, out toDate);
Error: cannot convert from 'out System.DateTime?' to 'out System.DateTime'
I wonder why it is not possible to pass a convert DateTime? to DateTime, in spite of it is actually a conversion from DateTime to DateTime?.
 
     
     
     
    