Thursday, May 16, 2013

Easy Convert String to DateTime Formatting with ASP.NET C#



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

No comments:

Post a Comment