Date Format is incorrect for languages other than English

0 Answers 127 Views
Localization
Kishan
Top achievements
Rank 1
Iron
Kishan asked on 20 Jan 2022, 06:35 AM | edited on 21 Jan 2022, 05:00 AM

Hello there,

In my Application, I use Telerik Blazor, Localization and Globalization

there is a Date field, I  Display date based on culture but something is wrong with the Date field other than English

here is my code

<Template>
	@((context as User).BirthDate.Value.ToShortDateString())
</Template>

see this attached screenshot for your reference.

Dimo
Telerik team
commented on 20 Jan 2022, 03:54 PM

KIshan, ToShortDateString() depends on general app globalization. Please refer to the Microsoft article. Other than that, you can also see our globalization docs.
Kishan
Top achievements
Rank 1
Iron
commented on 21 Jan 2022, 12:29 PM | edited

yeah! you are right, but I am using the Telerik grid where the date filter shows the date format-based culture selected as looks like in the attached image. the column of the date data format is displayed wrong. can you please let me know how can fix this issue

No answers yet. Maybe you can help?

Tags
Localization
Asked by
Kishan
Top achievements
Rank 1
Iron
Share this question
or