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

199
Vistas
JS date difference

When I do new Date() on my browser's console. I will get the time that is on my device. Like this Thu Dec 16 2021 17:07:55 GMT+0530 (India Standard Time) But when I do new Date in my node project I got a different time. 2021-12-16T11:37:40.931Z

what do I have to do to get the time which I am getting in the browser's console? I think there is some timeZone issue. but I did not change anything. So why did this happen?

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

0

This should "convert" from UTC to your timezone (new Date()).toString()

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