Rather that having to define a custom format for each call to the date
filter, is there a way to globally define a default format (other than \'medium\'
Based on some more research and then considering the comment by moderndegree, I have found that the following myDate
filter will work:
.filter('myDate', function($filter) {
var angularDateFilter = $filter('date');
return function(theDate) {
return angularDateFilter(theDate, 'dd MMMM @ HH:mm:ss');
}
});