Skip to content

how to disable weekend and how to start from monday in angular 7 #16458

@shafqatsiddiqui

Description

@shafqatsiddiqui

Reproduction

Use StackBlitz to reproduce your issue: https://stackblitz.com/fork/components-issue

Steps to reproduce:

  1. https://stackblitz.com/angular/gxqrbdmbkkj

Expected Behavior

What behavior were you expecting to see?
I want to disable weekend and should start form monday

Actual Behavior

What behavior did you actually see?
bydefault it is starting from sunday

Environment

  • Angular:
  • CDK/Material:
  • Browser(s):
  • Operating System (e.g. Windows, macOS, Ubuntu):
    Angular 7
    <input matInput [min]="minDate" [matDatepicker]="picker"
    placeholder="{{'checkout.summary.placeholder' | translate}}" [(ngModel)]="data['returnDate']">
    <mat-datepicker-toggle matSuffix [for]="picker">
    <mat-datepicker #picker>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions