This one line JavaScript function gets the last day of the month, for the specified month and year.
- function LastDayOfMonth(Year, Month)
- {
- return(new Date((new Date(Year, Month+1,1))-1)).getDate();
- }
This one line JavaScript function gets the last day of the month, for the specified month and year.