Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

71
Views
Creación de objeto de fecha extraña

Este es mi archivo index.js :

 console.log( "new Date(2022, 2, 23, 0, 0, 0, 0)", new Date(2022, 2, 23, 0, 0, 0, 0) ); console.log( "new Date(2022, 4, 16, 0, 0, 0, 0)", new Date(2022, 4, 16, 0, 0, 0, 0) );

Y la salida que obtengo es:

 new Date(2022, 2, 23, 0, 0, 0, 0) 2022-03-23T00:00:00.000Z new Date(2022, 4, 16, 0, 0, 0, 0) 2022-05-15T23:00:00.000Z

Espero ver el ...05-16T00... en el segundo, pero de alguna manera ese no es el caso.

Estoy ejecutando la versión 16.14.2 de node.js, intenté actualizar a 16.15.0. También probé 17.9.0 y 18.2.0

Cuando traté de poner el código anterior en el navegador o probé https://codesandbox.io/ , obtuve lo que esperaba.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!