DateTime dtnow = new DateTime(); // data type dataTime declare
dtnow = System.DateTime.Now; // assign current date
string strdtnow = dtnow.ToString("dd/MM/yyyy").ToString(); // Convert String to DateTime with date Formatting
dtnow = System.DateTime.Now; // assign current date
string strdtnow = dtnow.ToString("dd/MM/yyyy").ToString(); // Convert String to DateTime with date Formatting
No comments:
Post a Comment