I\'ve a requirement where I want to convert milliseconds to xHours and yMins in AngularJS.
For ex. 3600000 should be displayed as 1h 0m.
I tried using
Try this one
var app = angular.module ( 'myApp', [] ) ; app.controller ( 'myController', function ( $scope, $filter) { $scope.date = $filter('date')(milliseconds, 'MM/dd/yyyy'); });