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. Image for the cookie policy date

Custom date format error

Hi!

I tried to create an XLS file with the Syncfusion.XlsIO.Wpf 20.4.0.54 package and then load it back to a SfSpreadsheet control.

One cell ("C5" in the sample) contains a date that was created with a formula ("=B5-WEEKDAY(B5)" in the sample) and a custom format ("d"). When I load the created file in Excel, the value is displayed correctly. However if I load the created file into the SfSpreadsheet control, the cell is formatted as a number and the value is wrong. I saw in the changelog that a similar problem was fixed in the 20.4.0.44 version but it still does not work in the 20.4.0.54 package.

Could you please take a look at this?

Thanks in advance,

Mihaly


Attachment: SfSpreadsheet.Error_eea6a41f.zip

12 Replies

SJ Sathiyathanam Jeyakumar Syncfusion Team March 29, 2023 12:53 PM UTC

Hi Mihaly Poor,

We are currently checking your reported issue with provided information and we need two more business days to validate this. We will update you with further details on March 31, 2023.

Regards,

Sathiyathanam



DM Dhanasekar Mohanraj Syncfusion Team March 31, 2023 03:04 PM UTC

Mihaly Poor,

Still, we are working on this, we need two more business days to validate this. We will update you with further details on April 04, 2023. We appreciate your patience and understanding.



SJ Sathiyathanam Jeyakumar Syncfusion Team April 4, 2023 02:43 PM UTC

Mihaly Poor,

We deeply regret the delay and inconvenience caused. 

Still, our development team working on this, and we need two more business days to validate this. We will update you with further details on April 6, 2023. We appreciate your patience and understanding.



DM Dhanasekar Mohanraj Syncfusion Team April 6, 2023 11:14 AM UTC

Mihaly Poor,


We have checked the reported issue “Display Text is not correct when applied number format is "d" on our end and it is confirmed as a defect. And We have logged a bug. We will fix this issue and include it in our NuGet release Which is scheduled on April 18, 2023.


We will share the feedback link for this on April 10, 2023. We appreciate your patience until then.



SB Sweatha Bharathi Syncfusion Team April 11, 2023 12:47 PM UTC

Mihaly Poor,

As we mentioned earlier, we have created a bug report for the reported issue “Display text is incorrect while applying the cell number format as d. We will fix this issue and include it in our NuGet release Which is scheduled on April 18, 2023.

You can track the status of this report through the following feedback link,

Feedback Link: https://www.syncfusion.com/feedback/42715/display-text-is-incorrect-while-applying-the-cell-number-format-as-d

Note: The provided feedback link is private, and you need to login to view this feedback.

We appreciate your patience until then.




SJ Sathiyathanam Jeyakumar Syncfusion Team April 19, 2023 06:12 AM UTC

Mihaly Poor,

We are unable to include the fix for this issue in our NuGet Release which is released today as promised. We will fix this issue and include it in our upcoming NuGet release which is scheduled on April 25, 2023. We will let you know once it is released.

We appreciate your patience until then.



SJ Sathiyathanam Jeyakumar Syncfusion Team April 25, 2023 12:55 PM UTC

Mihaly Poor,

Weekly NuGet was not released today due to Essential Studio 2023 Volume 1 Service Pack release on next week. We will include the fix in our upcoming Essential Studio 2023 Volume 1 Service Pack release which is expected to be rolled out on next week.

However, we have resolved the issue Display Text is not correct when applied number format is "d" and generated custom NuGet in the version 21.1.41 under .NET Framework 4.6. This custom NuGet can be downloaded from below link.

https://www.syncfusion.com/downloads/support/directtrac/general/ze/syncfusion.xlsio.wpf.21.1.41-1344718928.zip


Note: First, we need to install the XlsIO custom NuGet before then after that only Syncfusion.SpreadSheet.WPF nuget.


Limitation in Microsoft Excel: Microsoft Excel treats 1900 as leap year which is not a correct behaviour. Also found the documentation for this.

https://learn.microsoft.com/en-us/office/troubleshoot/excel/wrongly-assumes-1900-is-leap-year

We will let you know once it is released. We appreciate your patience until then.



SJ Sathiyathanam Jeyakumar Syncfusion Team May 4, 2023 03:20 PM UTC

Mihaly Poor,

Thank you for your patience.

We are glad to announce that our Essential Studio 2023 Volume 1 Service Pack Release V21.2.3 is rolled out with the reported bug fix “Display text is incorrect while applying the cell number format as d.
” and is available for download in nuget.org.

Let us know, if you require further assistance on this



UN Unknown replied to Sathiyathanam Jeyakumar June 23, 2023 11:38 AM UTC

Dear Sathiyathanam Jeyakumar!

I tried to update the packages to the V21.2.3 version. I built and run the sample project I sent you earlier and the issue is still there unfortunately.

When I run the application (check the SfSpreadsheet.Error_eea6a41f.zip file in the attachment of the first message) after a Nuget package update, it creates a cell (B5) with the current date as the value. Then the C5 cell is calculated by a formula ("=B5-WEEKDAY(B5)"). When I open the created "Sample.xlsx" file into the SfSpreadsheet control the value of the C5 cell is still 0 but on June 23 it should be displayed as "17".

Can you check this please?

Thanks in advance,

Mihaly

UPDATE: When I edit the C5 cell (remove the last parenthesis and add it again) and hit enter, the value "17" is displayed correctly.



UN Unknown replied to Unknown June 23, 2023 11:58 AM UTC

UPDATE 2: With the V22.1.34 version it even crashes. After selecting the C5 cell and waiting for a few seconds the application crashes. I attached the callStack.txt file to check the call stack.


Attachment: callStack_82b94e2f.zip


SP Sreemon Premkumar Muthukrishnan Syncfusion Team June 26, 2023 06:22 PM UTC

Hi Mihaly Poor,

We are checking your reported problem with provided information and we need a time to validate this. We will update you with further details on, June 28 2023.




SB Sweatha Bharathi Syncfusion Team June 28, 2023 12:44 PM UTC


Mihaly Poor,



Query

Comments

  1.I built and run the sample project I sent you earlier and the issue is still there unfortunately. it creates a cell (B5) with the current date as the value. Then the C5 cell is calculated by a formula ("=B5-WEEKDAY(B5)").
UPDATE: When I edit the C5 cell (remove the last parenthesis and add it again) and hit enter, the value "17" is displayed correctly.

We suggest you to enable sheet calculations for the worksheet, before setting the formula. Else, the formulas will not be calculated.

 

IWorksheet worksheet = workbook.Worksheets[0];

worksheet.EnableSheetCalculations();

 

worksheet.Range["B5"].DateTime = DateTime.Now;

worksheet.Range["C5"].Formula = "=B5-WEEKDAY(B5)";

worksheet.Range["C5"].NumberFormat = "d";

2. With the V22.1.34 version it even crashes. After selecting the C5 cell and waiting for a few seconds the application crashes.

We have created a new forum thread (183166) for this ComboBoxAdv query. Please follow forum 183166 for further updates.  

Link : https://www.syncfusion.com/forums/183166/custom-date-format-error-from-181449



Loader.
Up arrow icon