[PR #2140] Update RadzenDatePicker.razor.cs #3099

Open
opened 2026-01-29 18:21:55 +00:00 by claunia · 0 comments
Owner

Original Pull Request: https://github.com/radzenhq/radzen-blazor/pull/2140

State: closed
Merged: Yes


When setting the project culture (e.g., to fa-IR), the year was still being displayed using the Gregorian calendar, which caused incorrect date representation in the UI. This fix ensures that the DateTimeFormat.Calendar is properly respected, and now the year is displayed correctly based on the assigned calendar (e.g., PersianCalendar).

Before
Culture set to fa-IR

Year displayed as Gregorian (e.g., 2025 instead of 1404)

After
Year display matches the Calendar set in DateTimeFormat

Fully localized and culture-respecting date output

**Original Pull Request:** https://github.com/radzenhq/radzen-blazor/pull/2140 **State:** closed **Merged:** Yes --- When setting the project culture (e.g., to fa-IR), the year was still being displayed using the Gregorian calendar, which caused incorrect date representation in the UI. This fix ensures that the DateTimeFormat.Calendar is properly respected, and now the year is displayed correctly based on the assigned calendar (e.g., PersianCalendar). Before Culture set to fa-IR Year displayed as Gregorian (e.g., 2025 instead of 1404) After Year display matches the Calendar set in DateTimeFormat Fully localized and culture-respecting date output
claunia added the pull-request label 2026-01-29 18:21:55 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#3099