I am using Angular 5 and with that, Angular Material. I have a datepicker that when opened, defaults to picking a month. However, it still requires you to select a day after you select a month, and displays the date selected including the day. Is there a way to make it so the user only needs to select a month and year? At the very least can I format the displayed selected date to only show the month and year? Here is the code for the datepicker:
<mat-form-field>
<input matInput [matDatepicker]="departMonthPicker" [max]="today" placeholder="Report Month" [formControl]="departStart">
<mat-datepicker-toggle matSuffix [for]="departMonthPicker"></mat-datepicker-toggle>
<mat-datepicker #departMonthPicker startView="year" [startAt]="yearStart"></mat-datepicker>
</mat-form-field>
I have tried looking for solutions to this, but either other solutions are just trying to figure out how to add the ability to select the year/month at all, or they are for older versions of angular and angular material.