Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

excel date to javascript date

// function to convert excel date to normal js date  
excelDateToJSDate(excelDate) {
    var date = new Date(Math.round((excelDate - (25567 + 1)) * 86400 * 1000));
    var converted_date = date.toISOString().split('T')[0];
    return converted_date;
}
 
PREVIOUS NEXT
Tagged: #excel #date #javascript #date
ADD COMMENT
Topic
Name
8+3 =