Convert Date Format MM/dd/yyyy To dd-MM-yyyy In Asp.net



            string dat = txtdate.Text;
            string strdat = DateTime.ParseExact(dat,"dd-MM-yyyy",null).ToString("MM/dd/yyyy");
            DateTime dt1 = Convert.ToDateTime(strdat);

Comments

Popular posts from this blog

Unable to perform operation on the item is locked in workspace

Insecure cookie setting: missing Secure flag

Display Canvasjs Line Chart using Data from Database