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:

File Upload Using Angular Js and Node Js

28-05-2018 AngularJs Node js file upload multer module

How To Get Your Blogs Posts Using Blogger API

30-07-2017 blogger api json php

Time Sorting Ascending or Descending Order in Javascript

19-07-2017 Javascript ascending order descending order

How to use http-post request in node js

14-03-2017 http-post module node js

Get random strings from given string In javascript

21-02-2017 javascript random string