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:
Convert and download html to pdf without saving file28-10-2018 node js convert html to pdf pdf download pdf without saving |
Convert Time 24 hrs to 12 hrs format In javascript12-03-2017 date javascript 12hrs convert |
How to get current date and time (yyyy-mm-dd H:i:s) using javascript09-03-2017 javascript date time |
How to remove last / value from url in javascript27-02-2017 array javascript last value |
Get random strings from given string In javascript21-02-2017 javascript random string |