Skip to content
This repository has been archived by the owner on Jul 12, 2021. It is now read-only.

Option to override first day of the week #56

Closed
github2099 opened this issue Jan 17, 2020 · 4 comments
Closed

Option to override first day of the week #56

github2099 opened this issue Jan 17, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@github2099
Copy link

Is it usually Sunday, can we change to Monday

@samuelmeuli
Copy link
Owner

Your calendar's first day of the week is determined by your system locale. For example, it's Sunday for en-US and Monday for en-UK.

@samuelmeuli samuelmeuli added the question Further information is requested label Jan 17, 2020
@github2099
Copy link
Author

What if its en-US but want to have Monday as first day...?

@samuelmeuli
Copy link
Owner

This behavior is delegated to Moment.js and react-day-picker. There's currently no option for overriding the default. I'm open for pull requests, though :)

The relevant calendar prop is specified here:

@samuelmeuli samuelmeuli added enhancement New feature or request and removed question Further information is requested labels Jan 17, 2020
@samuelmeuli samuelmeuli changed the title Change first day in week. Option to override first day of the week Jan 17, 2020
@samuelmeuli
Copy link
Owner

An option will be available in the next release.

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

No branches or pull requests

2 participants