I am getting error when debugging a project. The error is as below,
"FormatExceptio n was unhandled
String was not recognized as a valid DateTime."
Highlighting the following line
Please let me know whats the wrong??
Thanks,
Meera.
"FormatExceptio n was unhandled
String was not recognized as a valid DateTime."
Highlighting the following line
Code:
Me.DataTable1TableAdapter.Fill(Me.Sales.DataTable1, DateTime.ParseExact((TextBox1.Text), "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture), DateTime.ParseExact((TextBox2.Text), "MM/dd/yyyy", System.Globalization.CultureInfo.CurrentCulture))
Thanks,
Meera.
Comment