Reading DateTime column from excel into C# app
I'm trying to read data from .xls files into C# application. One of the columns has date time data like "3/31/2004 9:57:35 AM". I 'm accessing the excel data as
System.Array myvalues = (System.Array)range.Cells.Value;
Now myvalues has the excel data excep the DateTime appears as System.Double.
what am I doing wrong.
Please help.
tia
shashank
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Nitesh KejriwalRank #253 · 9.9K reputationPosted Apr 22, 2012, 5:47 PM EDT
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 22, 2012, 7:49 PM EDT
Please refer,
http://www.dotnetperls.com/fromoadate
i think this will help u to resolve the probelm.
Let me know if you have any other truble.
hope this help.