does this calender support persian date and time? if not is there any plan to add it in future releases? #164
-
title. |
Beta Was this translation helpful? Give feedback.
Answered by
ME-MarvinE
Sep 12, 2023
Replies: 1 comment
-
Hi @FardinFarnezhad , To change the DayNames to Persian, set CultureInfo.CurrentUICulture to a Persian culture. I tested with "fa-IR". Best to do this before |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
FardinFarnezhad
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @FardinFarnezhad ,
To change the DayNames to Persian, set CultureInfo.CurrentUICulture to a Persian culture. I tested with "fa-IR".
To change the Month names to Persian, set CultureInfo.CurrentCulture to a Persian culture. I tested with "fa-IR".
However the displayed year does not change to the Persian year. XCalendar only supports the Gregorian Calendar.
Best to do this before
InitializeComponent()
in App.caml.cs. More info on localisation is in the Displaying Dates page of the wiki.