Fscalendar: how to change weekday text format

Created on 21 Dec 2015  路  19Comments  路  Source: WenchaoD/FSCalendar

i want to change weekday format . example Sun -> S, Mon -> M . Can you help me for this one. Thanks.

Most helpful comment

In Swift4 use this
calendar.appearance.caseOptions = FSCalendarCaseOptions.weekdayUsesSingleUpperCase

All 19 comments

calendar.appearance.caseOptions = FSCalendarCaseOptionsWeekdayUsesSingleUpperCase;

thank sir

I want to change the Weekends. For example by default it shows SAT & SUN but i want FRI & SAT. How can i do that ? Could you please help me. Thanks in advance.

try calendar.firstweekday

i found that method but i can't set friday to first weekday. Please help. Thanks for your quick response. An example will help.

Try 5 or 6.

I think something wrong with my question. i couldn't explain clearly my issue. Apology for that. I set title weekend color red which is by default shows in SAT & SUN . My question is how can i set title weekend color to FRI & SAT day instead of SAT & SUN day. Thanks
simulator screen shot mar 28 2016 7 20 16 pm

Not supported.

Thanks for your co-operation. :)

@riazurcse may i know how did you color red the days in sunday?

@zuil7
calendar.appearance.titleWeekendColor = UIColor.red

can i change the Weekday format to be like (Su, Mo, Tu, We, Th, Fr, Sa)?

can i change the Weekday format to be like (Su, Mo, Tu, We, Th, Fr, Sa)?

Swift: calendar.firstWeekday = 1
Obj-C: calendar.firstWeekday = 1;

@WenchaoD by using calendar.appearance.caseOptions = FSCalendarCaseOptionsWeekdayUsesSingleUpperCase; it showing only one character in english. But if I changes language to other say Filipino, then it is showing 3 characters of week by default. Anyone know about this issue?

In Swift4 use this
calendar.appearance.caseOptions = FSCalendarCaseOptions.weekdayUsesSingleUpperCase

@sukh1993 that's only working for English, doesn't support localisation.

okay, I didn't checked in localisation @NirajCapermint

I think something wrong with my question. i couldn't explain clearly my issue. Apology for that. I set title weekend color red which is by default shows in SAT & SUN . My question is how can i set title weekend color to FRI & SAT day instead of SAT & SUN day. Thanks
simulator screen shot mar 28 2016 7 20 16 pm

Hey Buddy Hope you Doing Good my Question Are Able to Write Pre And Next Button code for the Changing month in fs Calender

Please Let me Know if You CAn

Was this page helpful?
0 / 5 - 0 ratings

Related issues

divya417 picture divya417  路  6Comments

DaniloJrC picture DaniloJrC  路  5Comments

kunass2 picture kunass2  路  4Comments

KushThakkar picture KushThakkar  路  6Comments

bizibizi picture bizibizi  路  3Comments