Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Infragistics.Excel.Workbook.Load -- Date column read as number
posted

I am using load() method to read data from Excel document to DataTable. I am constructing the DataTable based on the column values.

The issue is for Date columns the WorkSheetCell object shows value of '39815' for date value of '1/2/2009'

How to resolve this issue?

                Infragistics.Excel.Workbook wk = Infragistics.Excel.Workbook.Load(openFile.FileName);
               foreach (Infragistics.Excel.WorksheetRow wkRow in wk.WindowOptions.SelectedWorksheet.Rows)
                {
                    foreach (Infragistics.Excel.WorksheetCell wkCell in wkRow.Cells)