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

222
Views
¿Cómo obtener una fecha simple ("Número de mes")?

Estoy tratando de obtener la fecha, pero quiero regresar ex ”Oct 29” . He intentado usar split, pero cambia todos los días. Esto es lo que tengo hasta ahora.

 Let date = Date().split(“ 2021”)[0];

Esto devuelve day<string> month day<int>

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

0

Puede formatearlo, hay varios métodos incorporados o hacer esto:

 Let date = Date().toString().substring(4,10);
about 4 years ago · Juan Pablo Isaza Report

0

Puede usar la función toLocaleString para lograr lo que desea. Este código a continuación generará el resultado que desea ( "Oct 29" ).

 let date = new Date().toLocaleString('en-US', { month: 'short', day: 'numeric' });
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!