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

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Insecure cookie setting: missing Secure flag