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

DateTime FormatException

Thread ID:





127946 Dec 20,2016 10:29 PM UTC Dec 22,2016 09:18 AM UTC Xamarin.Android 3
Tags: XlsIO
Martin Dusek
Asked On December 20, 2016 10:29 PM UTC

this code produces "System.FormatException: Input string was not in a correct format." exception when last line of the code is reached.

            ExcelEngine excelEngine = new ExcelEngine();
            IApplication application = excelEngine.Excel;
            application.DefaultVersion = ExcelVersion.Excel2013;
            IWorkbook workbook = application.Workbooks.Create(1);
            IWorksheet worksheet = workbook.Worksheets[0];
            worksheet.Range[1, 1].DateTime = new DateTime(2016, 12, 20, 23, 25, 20);
            System.IO.MemoryStream stream = new System.IO.MemoryStream();

Why and how to fix it?

Sridhar Sukumar [Syncfusion]
Replied On December 21, 2016 01:04 PM UTC

Hi Martin, 
Thank you for contacting Syncfusion support. 

We are unable to reproduce the issue from our side. We suspect that this issue might be raised based on the machine culture. So, kindly share us the details about your machine culture which will be helpful for us to investigate further on this. 


Sridhar S. 

Martin Dusek
Replied On December 21, 2016 11:32 PM UTC

Hi Sridhar,
my tablet is in Czech language.

Best regards


Sridhar Sukumar [Syncfusion]
Replied On December 22, 2016 09:18 AM UTC

Hi Martin, 

We were able to reproduce the issue and have logged defect report regarding this. A support incident to track the status of this defect has been created under your account. Please log on to our support website to check for further updates 




Please let me know if you have any questions. 


Sridhar S. 


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