We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

UtilityMethods.ConvertNumberToDateTime

Thread ID:

Created:

Updated:

Platform:

Replies:

118058 Jan 26,2015 10:35 AM Jan 27,2015 12:20 PM ASP.NET Web Forms 1
loading
Tags: XlsIO
vlad
Asked On January 26, 2015 10:35 AM

Hi. I have some problems, when i try read excel file. Excel file contains date time column with values like this
 { 
25 Mar 2013, 
24 Mar 2013,
2403/2013
 }
last value is wrong as you see.
I use the next code:
{
         DataTable table = sheet.ExportDataTable(0, 0, 3, 1, ExcelExportDataTableOptions.DetectColumnTypes);
}
After this code line I have argument exception. In stack trace i have this line "Syncfusion.XlsIO.Implementation.UtilityMethods.ConvertNumberToDateTime(Double dNumber)". 
This seems like when DataTable fill  2403/2013 this value have wrong format maybe Out of DateTime values.
How i can take row and column where i have this exception?

Sudha Ramachandran [Syncfusion]
Replied On January 27, 2015 12:20 PM

Hi Vlad,

 

Thank you for using Syncfusion products.

 

Kindly try  using ‘ExportDataTable’ as represented in the below code snippet. If the issue still persists,  Please log on to our support website  and create a create a new direct-Trac incident for the same. It would be grateful for us to investigate further on this if you could share us the input template or issue reproducing sample.

 

Code Snippet:

 

DataTable table = sheet.ExportDataTable(1, 3, 4, 1, ExcelExportDataTableOptions.DetectColumnTypes);

 

 

Direct-Trac Link:  https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents

 

Please let us know if you have any queries.

Thanks,

Sudha R

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;