This is the Jade markup:
.col-md-9
| {{client.person.date_of_birth | date:'standardDate'}}
Here's the filter in Angular:
.filter('standardDate', function($filter){
var dateFilter = $filter('date');
return function(date) {
return dateFilter(date, 'MM dd yyyy');
}
})
After filtering, it returns this altered date:
0nStAMn16AMr16DAMte
When a preset date formatter like 'shortdate' is used in Angular, it works fine. This suggests that the issue may not lie with the date parameter itself.