function GetLastDayOfThisMonth () { var myDate = new Date (); var myMonth = myDate.setMonth (myDate.getMonth() + 1); var theDay = myDate.setDate (0); var lastDay = myDate.getDate (); return lastDay; }