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

134
Views
No se puede analizar como error de formato de Luxon

Tengo una fecha 02/03/2022 0600 Estoy tratando de hacer un objeto Luxon así

DateTime.fromFormat(`${date} ${time}`, 'MM/dd/yyy HHmm'), esto da como resultado un error the input "02/03/2022 0600" can't be parsed as format MM/dd/yyy hhmm

Funciona bien con fechas y horas por separado con el mismo formato. ¿Luxon no puede analizar fechas y horas juntas de esta manera?

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

0

te has perdido ay en 'MM/dd/yyy HHmm' . Cámbielo a 'MM/dd/yyyy HHmm'

 let a = luxon.DateTime.fromFormat('02/03/2022 0600', 'MM/dd/yyyy HHmm') console.log(a) console.log(Object.entries(a))
 .as-console-wrapper { max-height: 100% !important; top: 0; }
 <script src="https://cdnjs.cloudflare.com/ajax/libs/luxon/2.3.0/luxon.min.js"></script>

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!