I need to set a column as type text in Excel export from DataTable. All columns are in 'General' mode, so if data from a cell is datelike (2020-11-01 e.g.), Excel trats it like a date and I need it to be a string. This is my code regarding the table.
<script>
$(document).ready( function () {
var groupColumn = 0;
var table = $('#Table1').DataTable( {
"paging": true,
"autoWidth": false,
"info": false,
language: {
search: "_INPUT_",
searchPlaceholder: "Filtra risultati",
},
dom: 'Bfrtip',
buttons: [
{
text: 'Esporta dati',
title: '',
header: true,
extend: 'excel',
orientation: 'landscape',
pageSize: 'LEGAL'
},
],
select: true,
} );
} );
</script>
There is a way to force DataTable to set my third column as TEXT?