You need to convert the date format from OLE Automation to the .net format by using DateTime.FromOADate.
double d = double.Parse(b);
DateTime conv = DateTime.FromOADate(d);
More Related Contents:
- How to read an excel file in C# without using Microsoft.Office.Interop.Excel libraries
- Get instance of Excel application with C# by Handle
- Why does Microsoft.Office.Interop.Excel.Application.Quit() leave the background process running?
- The quest for the Excel custom function tooltip
- How to make correct date format when writing data to Excel
- Importing Excel into a DataTable Quickly
- How to save workbook without showing save dialog with Excel interop?
- Set data type like number, text and date in excel column using Microsoft.Office.Interop.Excel in c#
- C# – How to add an Excel Worksheet programmatically – Office XP / 2003
- Accessing an open Excel Workbook in C#
- How to convert a column number (e.g. 127) into an Excel column (e.g. AA)
- How to read data of an Excel file using C#?
- Reading excel file using OLEDB Data Provider
- Closing Excel Application Process in C# after Data Access
- How to get the range of occupied cells in excel sheet
- What is the algorithm to convert an Excel Column Letter into its Number?
- How to use use late binding to get excel instance?
- Cell color changing in Excel using C#
- Disposing of Microsoft.Office.Interop.Word.Application
- Read from word document line by line
- How can I quickly up-cast object[,] into double[,]?
- How To Write To A OneNote 2013 Page Using C# and The OneNote Interop
- How do I import from Excel to a DataSet using Microsoft.Office.Interop.Excel?
- C# – How to copy a single Excel worksheet from one workbook to another?
- Please explain why I am able to instantiate the “Application” interface in Excel VSTO
- Accessing Excel Custom Document Properties programmatically
- Query excel sheet in c#
- Open XML SDK 2.0 – how to update a cell in a spreadsheet?
- Get the Column Index of a Cell in Excel using OpenXML C#
- Exception (HRESULT: 0x800AC472) when using Excel.Worksheet.Select after calling Excel.Workbook.SaveAs