1
I would like to change the Reginal to "en" on my datepicker, I am using Angularjs.
<input type="text" ng-model="date" jqdatepicker />
<br/>
{{ date }}
var myApp= angular.module('app', []);
myApp.directive('datepicker', function() {
return {
require: 'ngModel',
link: function(scope, el, attr, ngModel) {
$(el).datepicker({
onSelect: function(dateText) {
scope.$apply(function() {
var date = Date.parse(dateText) || 0;
ngModel.$setViewValue(date);
});
}
});
}
};
});
Have any answers solved what was in doubt? Do you need something else to be improved? Do you think it is possible to accept it now?
– Murillo Goulart