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

[DatePicker] Set first day in calendar

Open almoraleslopez opened this issue 11 years ago • 4 comments

Hello. Sorry if this is not the right place to open an issue.

I've set a DatePicker with i18n working. The main issue I have is related with the first day shown in the calendar. It begins in Sunday but there are countries that the first day of the week is Monday.

I've checked in src/date-picker/calendar.jsx that calendar days are not dynamically loaded.

Is there any possibility to add this feauture?

Maybe if a new prop is passed to the component with a "startCalendarDay" or similar?

almoraleslopez avatar Nov 09 '15 10:11 almoraleslopez

Just adding to this. I believe most, at least European countries, follow this as it's the ISO 8601: "... beginning with Monday and ending with Sunday.". I hope it'll be prioritised by the team, or someone else willing to implement it :)

ostrgard avatar Nov 16 '15 10:11 ostrgard

Agreed, it is a bit annoying to have the week start on sunday whereas a normal week in Europe starts on monday according to ISO 8601 NEN 2772.

hmeerlo avatar Nov 19 '15 14:11 hmeerlo

:+1:

balthazar avatar Jan 12 '16 13:01 balthazar

@oliviertassinari This could now be closed

balthazar avatar Jan 18 '16 22:01 balthazar