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

184
Views
Cómo convertir UTC a fecha local en JavaScript

Quiero convertir 2022-01-15T12:22:24.0078237 en Sat Jan 15 2022 23:24:18 GMT+1100 . Las respuestas en Convertir fecha y hora UTC a fecha y hora local dicen que el constructor de Date debe convertir de UTC a fecha local, pero claramente esto no funciona aquí. ¿Qué puedo hacer para convertir la fecha UTC en la fecha del cliente local?

 new Date("2022-01-15T12:22:24.0078237") > Sat Jan 15 2022 12:22:24 GMT+1100 (Australian Eastern Daylight Time) new Date() > Sat Jan 15 2022 23:24:18 GMT+1100 (Australian Eastern Daylight Time)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Agregue 'Z' a la cadena de fecha, así:

 const dateString = "2022-01-15T12:22:24.0078237"; const localDate = new Date(dateString + "Z");
about 4 years ago · Juan Pablo Isaza Report
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!