ASP.Net AJAX CalendarExtender - dd.MM.yyyy Date Format Conversion error

Last Reply on May 14, 2013 10:10 AM By lucky1527

Posted on May 14, 2013 08:07 AM

hi i have web from in which i have use caleder extender but it display date in form of MM.dd.yyyy

i want it in i have change its format to

but while saving the date to data base it is giving error

Posted on May 14, 2013 10:10 AM


IFormatProvider provider = new System.Globalization.CultureInfo("en-CA", true);
            String datetime = TextBox1.Text.Trim();
            DateTime dt = DateTime.Parse(datetime, provider, System.Globalization.DateTimeStyles.NoCurrentDateDefault);