Date format not working
Date format not working
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.
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.
-
- Posts: 7122
- Joined: Tue Mar 20, 2018 5:34 am
Re: Date format not working
Hello,
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Please send us a sample report with test data that reproduces the issue for analysis.
Thank you.
Re: Date format not working
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,
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,
-
- Posts: 7122
- Joined: Tue Mar 20, 2018 5:34 am
Re: Date format not working
Hello,
Ok. We will wait.
Thank you.
Ok. We will wait.
Thank you.
Re: Date format not working
Hello,
why is this not working any more:
why is this not working any more:
- Attachments
-
- Date issue.png (63.61 KiB) Viewed 9947 times
-
- Posts: 7122
- Joined: Tue Mar 20, 2018 5:34 am
Re: Date format not working
Hello,
The Format function is return a string, but your variable is datetime.
Thank you.
The Format function is return a string, but your variable is datetime.
Thank you.
Re: Date format not working
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?
How can I customize the format for date no matter how it is defined on the local operating system?
-
- Posts: 7122
- Joined: Tue Mar 20, 2018 5:34 am
Re: Date format not working
Hello,
You can set the necessary culture property of the report. Or you Text Format option to set the necessary DateTime format.
Thank you.
You can set the necessary culture property of the report. Or you Text Format option to set the necessary DateTime format.
Thank you.