Page 1 of 2

Date format not working

Posted: Mon Mar 03, 2025 7:05 pm
by dikan
I have strange issue with dates. In designer , report preview look ok. But in Blazor server application sometimes date format is not working.

Example where it works:

https://prnt.sc/uRUOFImh-_o5

Example where it doesn't work regardless if i use {BRRDR.DATPOC.ToString("dd.MM.yyyy")} or {Format("{0:dd.MM.yyyy}", BRRDR.DATPOC)} :

https://prnt.sc/xpGDhhwJ7eyC

I hope you can help me.
Thank you.

Re: Date format not working

Posted: Mon Mar 03, 2025 8:58 pm
by Lech Kulikowski
Hello,

Please send us a sample report with test data that reproduces the issue for analysis.

Thank you.

Re: Date format not working

Posted: Tue Mar 04, 2025 11:55 am
by dikan
Hello,
since it is complicated report with a lot of database tables and subreports, we will need some time to prepare test data and sample report.
Thank you,

Re: Date format not working

Posted: Tue Mar 04, 2025 5:48 pm
by Lech Kulikowski
Hello,

Ok. We will wait.

Thank you.

Re: Date format not working

Posted: Wed Mar 19, 2025 4:00 pm
by dikan
Hello,
why is this not working any more:

Re: Date format not working

Posted: Wed Mar 19, 2025 5:19 pm
by Lech Kulikowski
Hello,

The Format function is return a string, but your variable is datetime.

Thank you.

Re: Date format not working

Posted: Thu Mar 20, 2025 11:01 am
by dikan
My problem is that when I run the report on the IIS server my Blazor Application shows the wrong date format. I need dd.MM.yyyy but in this particular case I have MM/dd/yyyy what is not acceptable for my clients.
How can I customize the format for date no matter how it is defined on the local operating system?

Re: Date format not working

Posted: Thu Mar 20, 2025 11:57 am
by Lech Kulikowski
Hello,

You can set the necessary culture property of the report. Or you Text Format option to set the necessary DateTime format.

Thank you.

Re: Date format not working

Posted: Mon Mar 24, 2025 9:52 am
by dikan
I am sorry, but culture property did not work.

Variable defined like this, still gives this as result: 03/24/2025 instead of 24.03.2025

Re: Date format not working

Posted: Mon Mar 24, 2025 10:27 pm
by Lech Kulikowski
Hello,

Try to use the ParametersPanelDateFormat option:
https://www.stimulsoft.com/en/documenta ... ttings.htm

Thank you.