I am currently in the process of working on a function to import Excel data into JSON objects on a website. To achieve this, I have implemented the XLSX.utils.sheet_to_json
utility in JavaScript which converts all the data into JSON format. However, some of the data is invalid, particularly when it comes to date formats not matching the original Excel sheet.
During my read method implementation, I used the following code:
var workbook = XLSX.read(data, {
type: "binary",
});
Do I need to include any additional code to ensure that the date data is imported correctly?