Jump to content

Recommended Posts

Galera estou com o seguinte problema:

Preciso disso:
08/11/2019
08/12/2019
08/01/2020

o meu está gerando: (contagem)
08/11/2019
08/12/2019
08/13/2019
08/14/2019

Você escolhe a quantidade de parcelas e ele gera um for ficando assim:
 

for (i = 1; i <= qtd_parcelas; i++) {
var today = new Date();
var dd = String(today.getDate()).padStart(2, '0');
var mm = String(today.getMonth() + i).padStart(2, '0'); //January is 0!
var yyyy = today.getFullYear();

today = dd + '/' + mm + '/' + yyyy;

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

Ao usar o fórum, você concorda com nossos Terms of Use.