My Profile Photo

Hao's Keeper


A blog to place memos


Get Number Of Days In A Specifice Month

If day is 0, it will return the last day of last month.

function getDays(year, month) {
	return new Date(year, month, 0).getDate();
}