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

590
Vistas
how to fix uncaught rangeerror: invalid time value in react date picker

i have done everything possible from my end to fix this issue but i am failing again and again. when i put something in the input form, the value is stored in redux and when i refresh the page i get the following error :

uncaught rangeerror: invalid time value

my code for datepicker is as follow:

 <DatePicker
 selected={passenger?.passportExp}
 onChange={date => {
 console.log("SELECTED DATEEEE >>>>>>",moment(date).add(12,'hours').toDate())
 modifyPassenger(index, { passportExp: moment(date).add(12,'hours').toDate() })
 }}
 maxDate={new Date(new Date().getFullYear() + 30,new Date().getMonth()+1, 0)}
 showMonthYearPicker
 dateFormat="MMM y"
 onFocusChange={({ focused }) => this.setState({ passportExp: focused })}
/>
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