I am using this code to generate a max date of +1 month with template literals in an HTML date input:
`<input type="date" max="${new Date(new Date().setMonth(new Date().getMonth() + 1)).toISOString().split('T')[0]}" required>`
Are there any simpler ways to achieve this?