if(startDate == "")
{
DateTime? startDateParser = null;
DateTime.TryParse(startDate, out startDateParser);
}
if the string startDate is empty i would like it to output a null however it complains
cannot convert from 'out System.DateTime?' to 'out System.DateTime'
parsing the null into a sql statement which the parameter accepts nulls however gets parsed in as 01/01/0001
command.Parameters.AddWithValue("@StartDate", (r.StartDate == null ? DBNull.Value : (object)r.StartDate));
any help will be greatly appreciated