Senin, 19 Oktober 2015

How to get total days of a month of a year.

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;

Bagikan

Jangan lewatkan

How to get total days of a month of a year.
4/ 5
Oleh

Subscribe via email

Suka dengan artikel di atas? Tambahkan email Anda untuk berlangganan.