The below code's are getting from moment.js document
moment().date(Number);
moment().date(); // Number
moment().dates(Number);
moment().dates(); // Number
But the input parameter
data type is number instead of short month name and year which is mine requirement inputs.
Below is my input format like an array object
`$scope.allMonths = ["Jan", "Feb", "Mar", "Apr", "May", "Jun",
"Jul", "Aug", "Sep", "Act", "Nov", "Dec"];
$scope.Year=2017;// `
So I have month and year, Now I want to get all days and date by using moment.js
Update:
I got the exact result by using normal javascript in my below Answer. But still am unable to find the solution by using moment.js