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:

Simple Array Sum | Javascript | hackerrank.com

07-05-2020 hackerrank.com javascript arrays array sum

Compare the Triplets | Javascript | hackerrank.com

07-05-2020 hackerrank.com

Sanitization in java sript

14-03-2017 sanitization java script

Using slice remove last two characters from given string

07-03-2017 slice remove

Send Mail in Node Js

21-02-2017 node js mail npm module