2
Answers

Reading DateTime column from excel into C# app

Photo of Shashank Chowdhury

Shashank Chowdhury

21y
11.3k
1
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

Answers (2)