I have a Calender displayed on my Angular App to select Dates, and since i Live in a Country were its custom the Week to start with Monday, I would need to change the Calendar to start with Monday and end with Sunday.
HTMl Template:
<mat-calendar
[selected]="form.get('businessDate')?.value"
(selectedChange)="updateFormDate($event)"
[minDate]="prepare?.reservationParameters?.minBusinessDate"
[maxDate]="prepare?.reservationParameters?.maxBusinessDate"
></mat-calendar>
APP Module:
import { LOCALE_ID } from '@angular/core';
import { registerLocaleData } from '@angular/common';
import localeDe from '@angular/common/locales/de';
registerLocaleData(localeDe);
const DEV_PROVIDERS: Provider[] = [
{ provide: LOCALE_ID, useValue: "de" },
authInterceptorProvider
];
providers: [environment.production ? PROD_PROVIDERS : DEV_PROVIDERS]
Im didnt find anything else on the Web regarding to this. Thank you in advance