Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support other Calendares like PersianCalendar #76

Open
rkarimabadi opened this issue May 11, 2022 · 0 comments
Open

support other Calendares like PersianCalendar #76

rkarimabadi opened this issue May 11, 2022 · 0 comments

Comments

@rkarimabadi
Copy link

I want to use BlazorDateRangePicker component to display Persian (solar) Calendar. Some parts, such as the display of months or days of the week, can be localized by selecting "fa-IR" culture, but since you used the built-in DateTime methods to calculate the month, year and day in the calendar, all calculations are based on the Gregorian calendar. This will cause the calendar to display incorrectly. Unfortunately, the DateTime calendar cannot be changed, but the Persian Calendar Library is available from the System.Globalization for this purpose and has all methods needed. I successfully changed your code to display the Persian calendar, but it is very good that this feature is implemented in your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant