it's similar to working with Angular.
Follow these instructions.
1. Run the command ng add @angular/material in your terminal and press Y whenever prompted.
2. Import the following modules in your module.ts file:
import {MatDatepickerModule} from '@angular/material/datepicker';
import { MatFormFieldModule } from '@angular/material/form-field';
Add the following code in your HTML file:
<mat-form-field appearance="fill">
<mat-label>Choose a date</mat-label>
<input matInput [matDatepicker]="picker">
<mat-datepicker-toggle matSuffix [for]="picker"></mat-datepicker-toggle>
<mat-datepicker #picker></mat-datepicker>
</mat-form-field>