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

134
Vistas
Fullcalendar substring date returns Uncaught TypeError: info.event.end.substring is not a function

I have a fullcalendar in which i'm using a jquery timepicker. On event click i need to take the start properties (example: "Wed May 04 2022 11:30:00 GMT+0200 (Ora legale dell’Europa centrale)") but using the substring to only have HH:MM. I tried doing: "var x= info.event.end.substring(16, 21);" but when i click an event this error occure: "Uncaught TypeError: info.event.end.substring is not a function" How can i fix this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

end is a Date object, and substring only works on String objects. Add .toString() and you'll be able to progress.

var x= info.event.end.toString().substring(16, 21);
about 4 years ago · Juan Pablo Isaza Denunciar
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