Skip to content
This repository has been archived by the owner on Jun 23, 2019. It is now read-only.

First day of week #15

Closed
SentoCrespo opened this issue Nov 9, 2016 · 6 comments
Closed

First day of week #15

SentoCrespo opened this issue Nov 9, 2016 · 6 comments

Comments

@SentoCrespo
Copy link

Any way of setting another day to be the first of the week?

Thanks.

@shoheiyokoyama
Copy link
Owner

shoheiyokoyama commented Nov 10, 2016

@vCrespoP Hi.
Are you managing a date by array?
In that case, you should change order of it.

For example, Koyomi manage date in DateModel, and get first day of month in indexAtBeginning.

@EvilClay
Copy link
Contributor

EvilClay commented Dec 7, 2016

The question here is that the first column in your calendar is Sunday. But for some regions, weeks begin on Monday, so the fist column should be Monday for some states.

@EvilClay
Copy link
Contributor

EvilClay commented Dec 7, 2016

@EvilClay
Copy link
Contributor

EvilClay commented Dec 7, 2016

..so can you expose the "fileprivate lazy var model: DateModel = .init()" so we can access the model.calendar .. or make a method to allow to set a custom calnder into the model?

@shoheiyokoyama
Copy link
Owner

I support holidayColor for international calendar.
you want to change first week, set week.
Please wait until the next version.

// first of week is monday
koyomi.week = ["MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN", ]

@lkuraer
Copy link

lkuraer commented Dec 7, 2017

Hi, great library. But I can't change first day of week to Monday, it's still Sunday. How can I do that? Is there any method?

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

No branches or pull requests

4 participants