for (month=1; month <= 12; month++) { var lastDay = new Date(date.getFullYear(), month, 0); // do something with your last day }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)