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:

Use java script file client side and server side at a time in node js

30-07-2017 node js include call javascript

How to redirect one page to another page in php

20-03-2017 redirect php

How to upload file by using request module

18-03-2017 request module node js

Filter for insert HTML in Angular Js

06-03-2017 filter show html angular js html

Filter for change Date Time format (MM-dd-yyyy HH:mm) in Angular Js

05-03-2017 mm-dd-yyyy HH:MM date formats angular js