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

194
Views
¿Cómo puede convertir una fecha numérica en una fecha de cadena en Javascript?

Me gustaría convertir la siguiente fecha numérica que obtengo después de recortar la fecha ISO en Javascript:

 2022-03-04

A esto:

 April 3, 2022
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Probar:

 const objDate = new Date("2022-03-04"); const monthFullName = objDate.toLocaleString('default', { month: 'long' }); const year = objDate.getFullYear(); const day = objDate.getDay() const result = monthFullName + " " + day +", " + year; // test console.log(result);

Puedes jugar con él aquí: https://jsfiddle.net/g6ucfbpa/15/

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