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

97
Views
Bosstrap date time picker change the view

Hi I'm stuck in a problem. I have a bootstrap date time picker which allows user to pick a date from tomorrow onward. But the problem is When it comes to the final day of the month the date time picker shows a window like this.

enter image description here

All days are unpicke-able.This is not user friendly.So I want it to display the next month.Because it may confuse the customer.This happens only on the end date of the month.

My Jquery code looks like this

$('.datetime-input').datetimepicker({
    format: "Y-MM-DD HH:00",
    sideBySide: true,
    useCurrent: false,
    toolbarPlacement: "top",
    showClose: true,
    minDate: moment(new Date()).add(1, 'days').startOf('day'),
    //        maxDate:moment(new Date()).add(30, 'days').startOf('day')
});

I tried to set the default date of the date-time-picker to next date by using

defaultDate: new Date(//new month firstDay//)

Thinking that this will make it to load next month.But nothing became successful.Please help me.

about 4 years ago · Juan Pablo Isaza
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!