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

150
Views
Establecer el valor mínimo de la fecha de inicio para la fecha de finalización menos 90 días
$(document).ready(function () { debugger; var startDate = $find('<%= RdpStartDate.ClientID %>'); var endDate = $find('<%= RdpEndDate.ClientID %>'); var end = endDate.get_selectedDate(); var start = startDate.get_selectedDate(); startDate.set_minDate(end-90); });

Estoy tratando de establecer el valor mínimo de la fecha de inicio en menos de 90 días de la fecha de finalización, todo antes de que se deshabilite, pero esto no funciona, ayuda, por favor.

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

0

Intenta cambiar el código a lo siguiente:

 end.setDate(end.getDate() - 90); startDate.set_minDate(end);

Actualizar:

 const endNinety = new Date(); endNinety.setDate(end.getDate()) endNinety.setDate(endNinety.getDate() - 90); startDate.set_minDate(endNinety);
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!