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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

datatable to excel file

Thread ID:





101343 Oct 17,2011 08:06 PM UTC Oct 27,2011 08:46 AM UTC ASP.NET Web Forms (Classic) 2
Tags: XlsIO
Shandao Song
Asked On October 17, 2011 08:06 PM UTC

1. I have DataTable which have a dataTime field with values Date and time like: 2011-08-05 07:55:03.437. When I export it to Excel file using: sheet.ImportDataTable(myDataTable, true, 1, 1); it changed the datatime value to 05/08/2011 only and no time value.
2. I have DataTable return value from database with no Field Name with the value ¾, or 234/3445. When I export it to excel file using: sheet.ImportDataTable(myDataTable, true, 1, 1), this value become Date value --- changed to 3/4/2011

I like keep the same value format to excel file. Do you have some best way to do it?

Thanks in advance.

Sridhar [Syncfusion]
Replied On October 20, 2011 05:44 PM UTC

Hi Shandao,

Thank you for using Syncufion products.

We working on the above reported sample at our side and we will get back to you with more details in one business day.


Sridhar [Syncfusion]
Replied On October 27, 2011 08:46 AM UTC

Hi Shandao,

Hi Shandao,

Thank you for using Syncfusion products.

We are able to reproduce the reported issue at our side and suspect this could be a defect.

So we request you to open a new direct-trac incident with a simple issue reproducing sample for further follow up on this issue.

Direct-Trac Link:

Please let us know if you require any further clarifications.



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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon