Javascript day in a month


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. function daysInMonth(_year, _month) {
  2. return new Date(_year, _month, 0).getDate();
  3. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.