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

104
Views
Use date-fns para formatear el día como UTC

Tengo el siguiente formato de fecha 2022-07-20 y me gustaría analizarlo en el siguiente formato 2022-07-20T00:00:00.000Z

estoy usando el siguiente código

 const main = () => { const day = '2022-07-20' const date = new Date() const result = parse(day.toString(), 'yyyy-MM-dd', date) console.log(result.toISOString()) }

Y obteniendo el siguiente resultado 2022-07-19T21:00:00.000Z . Supongo que esto sucede porque mi zona horaria es UTC+3. ¿Cómo lo formateo como 2022-07-20T00:00:00.000Z ?

about 4 years ago · Santiago Trujillo
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!