Change datepicker display format

06-03-2017 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:

Detect AdBlock with JavaScript in my browser
30-07-2017 AdBlock javascript detect
How to submit form using javascript or jquery.
16-04-2017 javascript jquery submit form
How to redirect one page to another page in php
20-03-2017 redirect php
Remove last two characters from given string
06-03-2017 substring javascript remove
Filter for replace text in Angular Js
05-03-2017 filter replace angular js