I made a countdown timer and need to get the number of days in a month and subtract the number of days that have passed (eg: 30 days in September minus 8 days - today's date). Now I need to manually enter:
const end = new Date(2021, 8, 30, 13, 0,12, 12);
You can use the following code to get the number of days in a month:
Number of days remaining in this month