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 Get Your Blogs Posts Using Blogger API

30-07-2017 blogger api json php

How to submit form using javascript or jquery.

16-04-2017 javascript jquery submit form

How to convert html to pdf in Node js

12-03-2017 pdf convert html node js

Navigate to another page using java script

06-03-2017 javascript redirection navigation

How to set or update or push the values into Object in javacript

27-02-2017 javascript set update push object