Created
August 22, 2020 09:27
-
-
Save tofusoup429/98d4431bc6527b9cba301aa580d62777 to your computer and use it in GitHub Desktop.
jsDateToExcelDate-test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {jsDateToExcelDate} from '@tofusoup429/excel-date-handlers' | |
let jsdate = new Date(2015,2,25) | |
let jsdatetoexceldate = jsDateToExcelDate(jsdate); | |
console.log(jsdatetoexceldate); | |
//42088 | |
//note that the month of date instance starts from 0. In order to pass march, you should pass 2 instead of 3. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment