Convert string to DateTime format in ASP.NET


string strDate=”30/05/2011”;
DateTime dt = Convert.ToDateTime(strDate);
string strDateTime = dt.Month+"/"+dt.Day+"/"+dt.Year;
Response.Write(strDateTime);
Out put will be : 05/30/2011

Comments