javascript - html5 date input and angularjs: localize input format of angularjs validation -


if create html5 date input like

<input type="date" required ng-model="mydate"> 

i localized input supported browsers,

enter image description here

in chrome, german date input pattern dd.mm.yyyy used. if open same page in browser not support inputs, ie or firefox, displayed regular text input (and that's totally okay). problem form validation of angularjs, forces user enter date yyyy-mm-dd.

is there way modify validation input pattern of angular.js 1.3 unsupported browsers allow german input pattern? if not possible, can validation of angular.js disabled, can validate input myself (but still have input[type="date"], supported browserse show date picker)?

i have created fiddle demonstrate issue.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -