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

143
Views
SheetJS no analiza correctamente la fecha

Estoy tratando de exportar mi tabla html a un archivo de Excel, usando la biblioteca SheetJS. Este es mi código:

 var table = document.getElementById("tableToExport"); var ws = XLSX.utils.table_to_sheet(table, { sheet: "Raport Odorizare",dateNF: 'dd.mm.yyyy'}); var wb = XLSX.utils.book_new(); XLSX.utils.book_append_sheet(wb, ws, "Raport Odorizare"); XLSX.writeFile(wb, "Raport Odorizare.xlsx");

Mi fecha en la tabla html se ve así: "2021-08-06" (sin la hora)

Sin embargo, cuando exporto a Excel, mi fecha se ve así: "06/08/2021 12:00:24 AM" (vea la imagen, por favor) y no puedo entender por qué mi fecha en Excel se genera con el parte del tiempo

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
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!