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

251
Views
problems with the jquery datepicker

I have an input date where I want the user not to choose dates before the current day I am using the minDate function but by default, the calendar jumps me to the date of november 2027. I hope you can help me, I've been working on this for days.

$(document).ready(function(){ 
    $(function(){
        const fechaAhora= new Date();
        const year=fechaAhora.getFullYear();
        const mes=fechaAhora.getMonth() + 1;
        const dia=fechaAhora.getDate()+ 1;
        const fechaD=year+'-'+mes+'-'+dia;
        $("#fecha").datepicker({
            minDate:fechaD,
        })      
    })
});

enter image description here

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

0

Use this code:

minDate: new Date()
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!