Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

98
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda