Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oleg-koval/excel-date-to-js
Convert Excel date in integer format into JS date. Dates are stored as numbers in Excel and count the number of days since January 0, 1900 (1900 standard, for mac it is 1904, which means January 0, 1904 is the start date). Times are handled internally as numbers between 0 and 1.
https://github.com/oleg-koval/excel-date-to-js
1900 1904 convert-dates date epoch epoch-time excel excel-data-engineering hacktoberfest hacktoberfest2021 javascript javascript-library
Last synced: 2 months ago
JSON representation
Convert Excel date in integer format into JS date. Dates are stored as numbers in Excel and count the number of days since January 0, 1900 (1900 standard, for mac it is 1904, which means January 0, 1904 is the start date). Times are handled internally as numbers between 0 and 1.
- Host: GitHub
- URL: https://github.com/oleg-koval/excel-date-to-js
- Owner: oleg-koval
- License: mit
- Created: 2017-11-09T12:09:00.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-13T07:12:47.000Z (about 2 years ago)
- Last Synced: 2024-10-17T10:29:06.234Z (3 months ago)
- Topics: 1900, 1904, convert-dates, date, epoch, epoch-time, excel, excel-data-engineering, hacktoberfest, hacktoberfest2021, javascript, javascript-library
- Language: JavaScript
- Homepage:
- Size: 572 KB
- Stars: 38
- Watchers: 3
- Forks: 8
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# excel-date-to-js
## Description
Converts Excel date in integer format into JS date. Dates are stored as numbers in Excel and count the number of days since January 0, 1900 (1900 standard, for mac it is 1904, which means January 0, 1904 is the start date). Times are handled internally as numbers between 0 and 1.
## Install
```sh
npm install -s excel-date-to-js
```## Usage
```javascript
const { getJsDateFromExcel } = require("excel-date-to-js");
getJsDateFromExcel("42510");
// 2016-05-20T00:00:00.000Z
```[Inspired by...](https://gist.github.com/christopherscott/2782634)