.net - Handling excel times imported from excel using Microsoft.ACE.OLEDB C# -


i importing excel file using c# , jetoledb (microsoft.ace.oledb excel 2010 , beyond), , using following code:

  var filename = @"c:\myexcel.xlsx";         var connectionstring = string.format("provider=microsoft.ace.oledb.12.0;data source={0}; extended properties=excel 12.0;", filename);          var adapter = new oledbdataadapter("select * [sheet1$]", connectionstring);         var ds = new dataset();         adapter.fill(ds, "anynamehere");         system.data.datatable data = ds.tables["anynamehere"]; 

the problem

when trying import datetime values, these values returned excel times, example "03/01/2013" returned 41334.

how transform these values .net datetime, , how check if date time values or normal doubles


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -