Language settings

Hi,

Have two questions about sfDateTimeEdit control.

  1. How to change red color for week numbers?
  2. How to change day names to 2 characters (from mån to MÅ)?

I use themes for 2019 Colorful.

I know how to change texts using resources files but I dont know the key names for each weekday.



3 Replies

SN Sudharsan Narayanan Syncfusion Team November 10, 2021 03:31 AM UTC

Hi Thomas,

Thanks for the Contacting Syncfusion support,

We have checked the reported issue that “Language settings” from our end. We have prepared the sample to achieve the requirement. So please find the code snippet and sample from the below location,

Sample: https://www.syncfusion.com/downloads/support/forum/170220/ze/SfDateTimeEditWeek168404690

Code snippet:

 
CultureInfo info = new CultureInfo("it-IT"); 
info.DateTimeFormat.AbbreviatedDayNames = new string[7] { "MA", "BG", "TY", "WI", "SY", "SZ", "JY" }; 
sfDateTimeEdit1.Culture = info;

For Week Number in different color:
sfDateTimeEdit1.MonthCalendar.Style.Cell.WeekNumberForeColor = Color.Yellow; 

Please Check with the below sample and let me know your concerns, We are happy to assist you.

Regards,
Sudharsan



TE Thomas Ellingsen replied to Sudharsan Narayanan November 11, 2021 08:55 PM UTC

Thank for the help, it worked perfectly.


Regards

Thomas



SN Sudharsan Narayanan Syncfusion Team November 12, 2021 04:39 AM UTC

Hi Thomas,

 
We are glad to know that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Regards,
Sudharsan
 


Loader.
Up arrow icon