material-ui-pickers icon indicating copy to clipboard operation
material-ui-pickers copied to clipboard

Need a possibility to change the first day of week

Open yaminyaylo opened this issue 8 years ago • 4 comments

Environment

Tech Version
material-ui-pickers 1.0.0-rc.11
material-ui 1.4.0
React 16.4.0
Browser Chrome 67
Platform Windows 10

Expected behavior

There is an API to change the first day of week (Monday or Sunday).

Actual behavior

Only Sunday for now.

Live example

yaminyaylo avatar Jul 17 '18 09:07 yaminyaylo

Actually this will works depends on user locale. If you have a locale with 1 day of week Monday - you will see the Monday as first day

dmtrKovalenko avatar Jul 17 '18 13:07 dmtrKovalenko

Yep, it depends on locale of your date utils. Configure your locale properly and it should be good. That's out of material-ui-pickers scope.

cherniavskii avatar Jul 17 '18 13:07 cherniavskii

OK, thanks!

yaminyaylo avatar Jul 17 '18 15:07 yaminyaylo

How can I set the right locale to have the first day of the week as Monday?

riccardogiorato avatar Nov 06 '19 15:11 riccardogiorato