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 search text in string using php ?

29-10-2017 php search string search

Detect AdBlock with JavaScript in my browser

30-07-2017 AdBlock javascript detect

How To Get Your Blogs Posts Using Blogger API

30-07-2017 blogger api json php

How to get id by using name attribute in javascript

20-03-2017 html id name javascript

How to change background color and color to the text using javascript

27-02-2017 css javascript colors