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:

Check null values in JavaScript?

04-02-2019 JavaScript null check null value

Convert and download html to pdf without saving file

28-10-2018 node js convert html to pdf pdf download pdf without saving

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 make an http request in node js

14-03-2017 http module node js

Navigate to another page using java script

06-03-2017 javascript redirection navigation