DateTime date = DateTime.Now; string str=""; date =Convert.ToDateTime(dtl.Rows[0]["createddate"].ToString()); str = date.ToString("mm/dd/yyyy"); DateTime datenow = DateTime.Now; string strnow=""; strnow = datenow.ToString("mm/dd/yyyy"); if (str != strnow) { }
mm
MM
"MM/dd/yyyy"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)