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,
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
Post a Comment