Angular does not provide such a method. You will have to use your own JS date objects.
var date1 = Date.parse('01/01/1970 ' + $scope.priviuosLevelCutoffTime+':00') var date1 = Date.parse('01/01/1970 ' + data.cutOffTime+':00')
You can put variables in $scope if you want to use in a template.
source share