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

146
Views
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
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!