Convert string to DateTime format in ASP.NET on November 21, 2011 Get link Facebook X Pinterest Email Other Apps 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
Comments