Get Number Of Days In A Specifice Month
If day is 0, it will return the last day of last month.
1
2
3
function getDays(year, month) {
	return new Date(year, month, 0).getDate();
}
 This post is licensed under  CC BY 4.0  by the author.
If day is 0, it will return the last day of last month.
1
2
3
function getDays(year, month) {
	return new Date(year, month, 0).getDate();
}