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

387
Views
cuando uso la exportación de datos html en un archivo de Excel, la fecha no es perfecta, que está por debajo de la fecha 12

Ejemplo en la fecha a continuación en dd/mm/aaaa 03/02/2021, por lo que la fecha por debajo de 12 se muestra automáticamente como incorrecta como 02/03/2021

 function ExportToExcel(type, fn, dl) { var elt = document.getElementById('tablexl1'); var wb = XLSX.utils.table_to_book(elt, { sheet: "sheet1" }); return dl ? XLSX.write(wb, { bookType: type, bookSST: true, type: 'base64' }) : XLSX.writeFile(wb, fn || ('CollectionReport.' + (type || 'xlsx'))); }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Intenta usar la opción raw como verdadera :

 function ExportToExcel(type, fn, dl) { var elt = document.getElementById('tablexl1'); var wb = XLSX.utils.table_to_book(elt, {raw:true, sheet: "sheet1" }); return dl ? XLSX.write(wb, { bookType: type, bookSST: true, type: 'base64' }) : XLSX.writeFile(wb, fn || ('CollectionReport.' + (type || 'xlsx'))); }
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!