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

134
Views
Disable dates in bootstrap datepicker

as the title says, I would like to disable specific dates from a bootstrap datepicker (v4.6).Is there a way to do so? I've already tried to add some properties to it by doing

$('#input_date').datepicker('option', 'minDate', '2022-02-10');

without success (it actually creates a new jquery UI datepicker which I don't want).

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

0

As posted in the comment to your answer, you can find the required options here: https://bootstrap-datepicker.readthedocs.io/en/latest/options.html#datesdisabled

Something like:

$('#input_date').datepicker({
  'minDate': '2022-02-10',
  'datesDisabled': [
     new Date(2021, 03, 25),
     "03/25/2021 00:00"
   ]
});

Also an answer: Bootstrap datetimepicker datesDisabled

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!