Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

223
Visualizações
Add day(s) and month(s) to a date depending on the input value

If i have an input tag where I can input numbers and i would want a input value of 1 add 1 day to a date.

example 1: Current date = 26/11/2021 Start of next month date = 01/12/2021 Now I input value of 1 day then i want 01/12/2021 to change to 02/12/2021

Then if i input value of 2 days then i want 01/12/2021 to change to 03/12/2021

Then if i input value of 3 days then i want 01/12/2021 to change to 04/12/2021 etc....

example 2: Current date = 26/11/2021 Start of next month date = 01/12/2021 Now I input value 1 month then i want 01/12/2021 to change to 01/01/2022

Then if i input value 2 month then i want 01/12/2021 to change to 01/02/2022

Then if i input value 3 month then i want 01/12/2021 to change to 01/03/2022 etc...

Basically to determine the Date where the input value of either number of days and/or months

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda