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

219
Views
¿Cómo puedo agregar la fecha actual al final del título en la tabla de datos de JavaScript?

¿Cómo puedo agregar la fecha actual al final del título? Quiero mostrar el nombre del archivo cuando lo exporto como: excel_22.03.22

 $('#example').dataTable({ dom: 'Bfrtip', buttons: [ { extend: 'excelHtml5', title: 'Excel', text:'Export to excel' //Columns to export //exportOptions: { // columns: [0, 1, 2, 3,4,5,6] // } }, { extend: 'pdfHtml5', title: 'PDF', text: 'Export to PDF' //Columns to export //exportOptions: { // columns: [0, 1, 2, 3, 4, 5, 6] // } } ] });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Reemplace el título: 'Excel' con algo como esto

usar dayjs

título: Excel${dayjs().format(YY.MM.DD)}

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!