I would like to change the reginal to "en" in 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);
});
}
});
}
};
});