I have a JSON file returning a number of dates in such format:
/Date(1235548800000)/
How can i filter this in my Controller to only return the year?
I have tried:
var filteredDate = $filter('date')($scope.ToDate, 'yyyy');
console.log(filteredDate);
But console is displaying:
/Date(1235548800000)/