I have a md-datepicker
defined with Angular 1.X:
<md-datepicker ng-model="query.filter.mindate"></md-datepicker>
How can I define the format of the date of this component?
I have already read some answers about it (like this ) where they propose to use the mdDateLocaleProvider.formatDate
and parseDate
and It does not work for me.
I have also tried to put it in the following way:
<md-datepicker ng-model="query.filter.mindate">{{date : 'D/M/YYYY'}}</md-datepicker>
And this one:
<md-datepicker ng-model="query.filter.mindate">{{myFecha date : 'D/M/YYYY'}}</md-datepicker>
But this does not work either, the validation occurs as if I expected M/D/YYYY
and I do not see how to modify it.
Is there any way to put some tag in the same HTML so that it validates with the format you want?