I've got a internationalization difference with angular datepicker between onChange and onInput events:
Here my code:
In my module, i provide the fr
format to datepicker like this:
providers: [
{
provide: MAT_DATE_LOCALE, useValue: 'fr-FR'
}
],
So the return date format expected is: dd/mm/yyyy
as french format.
This work well when i've pick a date with the calendar. But if I enter directly by date in the input i still have a us
format mm/dd/yyyy
in return.
Maybe i missing something but i don't see where in the angular material documentation this case is precise.
Any help will be appreciated. Thx
Edit: I provide a stackbliz link to show my problem.