I am trying to format the date using Angular.js
, but it seems to only be functioning properly in Chrome. Below, I have included my code for reference.
$scope.timestamp=2016-12-16 07:58:30 AM
$scope.orginalTime= $filter('date')(new Date($scope.timestamp.replace("-","/")),'dd-MM-yyyy HH:mm:ss a');
While attempting to format the date and time, I have noticed that it is only working in Chrome. It is crucial for this functionality to work across all browsers including Firefox, Safari on MAC
.