Yngvarr

Generation

generate functionMon, 26 Dec 2022

массив дат текущего месяца

function dates () { const d = new Date(); const days = new Date(d.getFullYear(), d.getMonth() + 1, 0).getDate(); const dd = []; for (let i = 1; i <= days; i++) { dd.push(i); } return dd; }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant