Sunday, November 8, 2009

empty datetime inside a datagrad

if (edate.Equals("")) {
param3.Value = DBNull.Value;
} else {
param3.Value = DateTime.Parse(edate);
}

No comments: