Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!