How to change date format in c# asp .net?

Below asp.net date format example:


string format = "dd/MM/yyyy";

string date = Convert.ToDateTime("2013-09-05 09:34:43").ToString(format);

Response.Write(date.ToString());

About the Author

avatar