Date format not working

Stimulsoft Ultimate discussion
dikan
Posts: 195
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Date format not working

Post by dikan »

Well, from the beginning my Blazor viewer looks like this

<StiBlazorViewer Report="@Report" Options="@options" Localization="Reports/sr.xml"
Width="100%" Height="100%"
Theme="StiViewerTheme.Office2013LightGrayCarmine" />

Nothing fancy, just copied from the example and of course it includes Localization. And if somehow I forget to place sr.xml in a proper folder to be accessible to my application then it fails to load the report. So Localization is applied as it should be.

What is next?
Lech Kulikowski
Posts: 7184
Joined: Tue Mar 20, 2018 5:34 am

Re: Date format not working

Post by Lech Kulikowski »

Hello,

Sorry, we did not exactly understand your issue. What do you want to do?

Thank you.
dikan
Posts: 195
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Date format not working

Post by dikan »

I want my variable defined like this:
Attachments
VARIABLE.png
VARIABLE.png (24.67 KiB) Viewed 26115 times
dikan
Posts: 195
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Date format not working

Post by dikan »

to give me result 24.03.2025 instead of:
Attachments
Date.png
Date.png (20.58 KiB) Viewed 26115 times
dikan
Posts: 195
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Date format not working

Post by dikan »

Setting the necessary culture property of the report did not solve problem
dikan
Posts: 195
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Date format not working

Post by dikan »

Sorry for my ignorance. Thank you.
Lech Kulikowski
Posts: 7184
Joined: Tue Mar 20, 2018 5:34 am

Re: Date format not working

Post by Lech Kulikowski »

Hello,

Did you solve your problem?

Thank you.
dikan
Posts: 195
Joined: Thu Jun 18, 2009 5:05 pm
Location: Serbia

Re: Date format not working

Post by dikan »

Yes, I solved my problem with ParametersPanelDateFormat. Answer with the wrong link to HTML5 viewer was kind of misleading but after some research I found this very same parameter for Blazor and it did the job. But, nevertheless I think that specifying the right localization file is enough to pick the date format for PanelDateFormat.
Lech Kulikowski
Posts: 7184
Joined: Tue Mar 20, 2018 5:34 am

Re: Date format not working

Post by Lech Kulikowski »

Hello,

Thank you for the information.
Post Reply