I have an application where my date displays "null" when I put my filter and I do not understand why..
Without my filter, the date is displayed as follows:
2018-07-05 00:00:00.000000
but when I put the following things it shows me "null"
my filter :
.filter('dateOnly', [
'$filter', function($filter) {
return function(input, format) {
return $filter('date')(new Date(input), format);
};
}
])
in my view :
<span> {{ element.dateVisite.date | dateOnly: "dd MMMM y"}}</span>
if anyone could help me please