Having trouble with a specific date while exporting an Excel file. Refer to the screenshot of the Excel file for clarity: https://i.stack.imgur.com/7mFE4.png
The date '01/02/2019 00:00:00' is being treated as a number instead of displaying correctly like all other dates. Below is the code snippet:
fireEvent() {
const ws: XLSX.WorkSheet = XLSX.utils.table_to_sheet(this.table.nativeElement);
const wb: XLSX.WorkBook = XLSX.utils.book_new();
XLSX.utils.book_append_sheet(wb, ws, 'Sheet1');
XLSX.writeFile(wb, 'ExportDatiTable.xlsx');
}
If you have any suggestions on how to resolve this issue, please let me know. Thank you.