MatDatePicker start week on monday

前端 未结 3 2104
谎友^
谎友^ 2021-01-06 04:20

There is any way to configure the md-datepicker to start week on monday? By default it start on Sunday and there isn\'t any specification who to change this.

3条回答
  •  时光取名叫无心
    2021-01-06 05:03

    @jpavel More help is needed.

    I tried both your plunk, and both crashed. Lots of errors in the console log, output panel shows nothing (only "Loading the Angular Material App...").

    I tried to adopt your code, and added

    providers: [{provide: DateAdapter, useClass: CustomDateAdapter }]
    

    to my core module. It seems nothing is happening. I type and paste to the input (date) field, and neither parse() or format() is invoked (I added console.log() to it).

提交回复
热议问题