Filter for change Date format (MM-dd-yyyy) in Angular Js

05-03-2017 mm-dd-yyyy date formats angular js

By using below filter for change Date format (MM-dd-yyyy) in Angular Js, for given date.
Ex : 2017-03-05 08:40:00. By using the below filter the final result is 03-05-2017

filter('ChangeDateFormat', function($filter)
	return function(input)
		if(input == null){ return ""; }
		var _date = $filter('date')(new Date(input), 'MM-dd-yyyy');
		return _date;



You might also like:

File Upload Using Angular Js and Node Js
28-05-2018 AngularJs Node js file upload multer module
Convert Time 24 hrs to 12 hrs format In javascript
12-03-2017 date javascript 12hrs convert
How to find Angular Errors
06-03-2017 errors angularjs exceptionHandler
How to change background color and color to the text using javascript
27-02-2017 css javascript colors
Call a function every second or 5 seconds in javascript
22-02-2017 setinterval function calling