Posted on: 2/19/2014 7:03:33 AM | Views : 670

while having ajax control toolkit, was trying to use the txtTodayDate from dd/MM/yyyy format to insert to sql with converted from DateTime.ParseExact to dd/MM/yyyy format, seems showing error, 
<asp:CalendarExtender ID="CalendarExtender1" Format="dd/MM/yyyy" TargetControlID="txtTodayDate" runat="server"> </asp:CalendarExtender>
....
string strinsertinvdetails = Invoice.InsertInvoiceDetails(Convert.ToInt64(strnewinvoiceno), straddedLastCharacterInvoiceCode, txtTo01.Text + txtTo2.Text + txtTo3.Text, DateTime.ParseExact(txtTodayDate.Text, "dd/MM/yyyy", null), .......
 public static string InsertInvoiceDetails(long intinvno, string strinvcode, string strinvcustomer, DateTime dtinvdate,

Go to the complete details ...