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:

Compare the Triplets | Javascript | hackerrank.com

07-05-2020 hackerrank.com

How to search text in string using php ?

29-10-2017 php search string search

Remove last two characters from given string

06-03-2017 substring javascript remove

Get next date from given date in javascript

06-03-2017 date javascript next date

Navigate to another page using java script

06-03-2017 javascript redirection navigation