if (txtdob.Text == "") { DateTime? value = null; record.DOB = value.Value; } else { record.DOB = Convert.ToDateTime(txtdob.Text); }
record.DOB = System.DBNull.Value;
Nullable<DateTime> _myDateTime;
if (object.myDateTime != null)
if (object.myDateTime.HasValue)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)