According to the documentation https://material.angular.io/components/datepicker/overview here to set the locale code to one you want you provide it by putting
providers: [
{provide: MAT_DATE_LOCALE, useValue: 'en-GB'},
]
But then my app won't compile as it tells me it cannot find the name MAT_DATE_LOCALE. Am I missing something here as in I have to define it myself? Though, I can't think of where to put it as it's all in the module class.
import { MAT_DATE_LOCALE } from '@angular/material';at the top of the file.