Change datepicker display format

datepicker
angular js

In Angular js the bs-datepicker date format will be changed by adding below filter into your js file.

angular.module('test')
.config(function($datepickerProvider) {
  angular.extend($datepickerProvider.defaults, {
    dateFormat: 'MM-dd-yyyy',
    startWeek: 1
  });
});

 

You might also like:

How to use request module in node js

16-03-2017 request module node js

Using slice remove last two characters from given string

07-03-2017 slice remove

Navigate to another page using java script

06-03-2017 javascript redirection navigation

Filters for convert text to camel case in Angular Js

05-03-2017 angularjs camelcase filters

Sample Validations in javascript

22-02-2017 validations javascript