Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

99
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda