/ Published in: JavaScript
Expand |
Embed | Plain Text
function days_in_month(month, year) { if(month!=2) { if(month==9||month==4||month==6||month==11) return 30; else return 31; } else return year%4==""&&year%100!="" ? 29 : 28; }
You need to login to post a comment.
