string myDate = "12-Apr-1976 22:10"; DateTime dateValue = DateTime.Parse(myDate); string format = "YYYY/MM/DD"; string d = dateValue.ToString(format);
string strDate = DateTime.Now.ToString("YYYY-MM-DD");
string format = "yyyy-MM-dd"; string f = DateTime.Now.ToString(format);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)