Hello frnds,
I want to calculate no off weeks from two dates using Angularjs. I tried this my way. but its not working. please give me some example.
Thanks,
Ram.
What I have tried:
$scope.Getweek = function () {
$scope.month = $filter('date')($scope.startOfYear, 'MM');//December-November like
$scope.day = $filter('date')($scope.startOfYear, 'dd'); //01-31 like
$scope.year = $filter('date')($scope.startOfYear, 'yyyy');//2014 like
$scope.startOfYear1 = $scope.day + '/' + $scope.month + '/' + $scope.year;
$scope.ABC = ($scope.startdate - $scope.startOfYear1) / 7;
alert($scope.ABC );
};