let today = new Date(); let lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1, 0); let numberOfDays = lastDayOfMonth.getDate();