string str=Convert.Tostring(DateTime.Now);
string str=String.Format("{0:dd/MM/yyyy}", Convert.Tostring(DateTime.Now))
string str=DateTime.Now.ToString("dd/MM/yyyy");
string str=DateTime.Now.ToShortDateString();
string date1=DateTime.Now.ToString();
string date2=DateTime.Now.ToShortDateString();
string date3=DateTime.Now.ToString("yyyy-MM-dd");
String CurDateTime = DateTime.Now.ToString();
ToString()
datetime
string dstr = DateTime.Now.ToString();
DateTime CurrentDateTime = System.DateTime.Now; string CurrentDateTime_InString = CurrentDateTime.ToString();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)