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

87
Views
Formateo de fecha con moment.js

Tengo una fecha como esta 2021-10-20T07:03:02-04:00 y a partir de esta fecha necesito hacer una fecha como esta: Wednesday 7:03am

Mi intento:

 moment(date).format('dddd h:mma');

Pero llego Wednesday 14:03am ¿Tienes alguna idea de cómo solucionarlo?

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

Como se menciona en los documentos de momentjs, puedes hacerlo así

 moment(someday).format('dddd HH:MM a');

momentos documentos >>

about 4 years ago · Juan Pablo Isaza Report

0

Esto debería funcionar bien, el problema es que su fecha inicial está en un formato incorrecto.

 moment(date).format('dddd hh:mm a');
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!