Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
SheetJS don't parse corectly the date

I am trying to export my html table to excel file, using SheetJS library. This is my code:

 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");

My date in html table look like this: "2021-08-06" (whitout the time)

However when I export to excel my date look like this: "08/06/2021 12:00:24 AM" (see the picture,pls) and I can't figured it out why my date in excel is beeing generated with the time part.

enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda