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

173
Views
Fecha máxima basada en otra entrada

Estoy usando la biblioteca 'Pickaday Js' para las fechas.

tengo html como este

 <input class="today" type="date" id="today"> <input class="another_day" type="date" id="another_day">

tengo javascript como este

 var today = new Pikaday({ field: document.getElementById("today"), minDate: new Date(), }); var another_day = new Pikaday({ field: document.getElementById("another_day"), minDate: new Date(), maxDate: today.value + 15 // I want the max date to be the today input date + 15 days });

¿Puede alguien ayudarme a lograr esto?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Resuelto.

 var another_day = new Pikaday({ field: document.getElementById("another_day"), minDate: new Date(), new Date(new Date(document.getElementById("today").value).getTime()+(15*24*60*60*1000)) // Added 15 days to input today });
about 4 years ago · Juan Pablo Isaza Report
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!