components icon indicating copy to clipboard operation
components copied to clipboard

MdDatePicker start week on monday

Open ssauriera opened this issue 9 years ago • 6 comments

There is any way to configure the datepicker to start week on monday?

ssauriera avatar Jul 08 '17 11:07 ssauriera

As far as I know, the API does not provide anything for this. Also please keep GitHub for issues (or mention that your issue is a feature request) and ask questions on Stack Overflow.

m98 avatar Jul 08 '17 11:07 m98

@sriera , override getFirstDayOfWeek in your date adapter returning 1 instead of 0.

getFirstDayOfWeek(): number {
   // We can't tell using native JS Date what the first day of the week is, we default to Sunday.
   return 0;
  }

julianobrasil avatar Jul 08 '17 16:07 julianobrasil

And how do yo do this?

Thanks

ssauriera avatar Jul 08 '17 16:07 ssauriera

Ask for It in stackoverflow and post the link here. I'll answer over there.

julianobrasil avatar Jul 08 '17 16:07 julianobrasil

Please keep GitHub issues for bug reports / feature requests. Better avenues for troubleshooting / questions are stack overflow, gitter, mailing list, etc.

jelbourn avatar Jul 08 '17 17:07 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.