I\'m importing data from an Excel sheet on to a DataTable
using the following code:
OleDbConnection con = new OleDbConnection(\"Provider=Microso
I also faced the same Issue. The Date column in the Excel sheet is dd/MM/yyyy. But as per my system settings the data format is MM/dd/yyyy. Therefore if the date is 31/07/2013 for example , the Date field displayed as empty string.
Using IMEX1 along with "Microsoft.ACE.OLEDB.12.0" Driver Solved the Problem.
"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + FilePath + ";Extended Properties='Excel 12.0;HDR=Yes;IMEX=1;'"
But "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + FilePath + "; Extended Properties=Excel 8.0;IMEX=1" doesn't work.