public static bool IsDateNull(DateTime d){ return d.Equals(Convert.ToDateTime(null));}
// On RowDataBound event // Get control from data bound grid Label l = (Label)e.FindControl("processedDateLabel");if(l.Text == "1/1/0001 12:00:00 AM") l.Text = "";
private DateTime _processedDate;public string ProcessedDateDisplay{ get { if(General.IsDateNull(_processedDate)) return ""; else return _processedDate.ToString(); }}
Remember Me
a@href@title, b, blockquote@cite, em, i, strike, strong, sub, super, u