How to get total days of a month of a year via angularjs.
$scope.month = 10;
$scope.year = 2015;
// Get total days of Oct 2015
$scope.totalDays = new Date($scope.year, $scope.month, 0).getDate();
totalDays = 31;
Learning angularjs via detail examples. AngularJs event, angularjs table, angularjs grid, angularjs sort, angularjs sort filter, angularjs application, angularjs templates, angularjs bootstrap.
Home » angularjs examples » How to get total days of a month of a year.
No comments:
Post a Comment