I am having trouble filtering the date correctly in my controller.
My desired date format is
Thu Mar 31 2016 05:05:00 GMT-0400 (EDT)
.
However, when I use the code mentioned above, the results
show up as 03-31-2016
.
This is the code snippet from my controller:
$scope.date = "2016-03-31T05:05:00Z";
var results = $filter('date')($scope.date, "EEE MMM DD YYYY HH:mm:ss GMT Z (EDT)");
Can someone please help me identify what's causing this issue and provide a solution? Running Angular version 1.2.26
.