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

155
Views
Set start date min value to end date minus 90 days
$(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);
              
                });

I'm trying to set start date min value to less than 90 days of end date all before that disabled but this isn't working, help please.

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

0

Try to do change the code to the following:

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

Update:

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!