Skip to content
Advertisement

How to generate the next six months?

I’m trying to create this template. Expect to receive September 30, 2022 or October 1, 2022

But I get the next year the same day!

JavaScript

EDIT

I want to get a series of dates (every 6 month) and take the nearest:

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement