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.
constZemen=require('zemen');letzare=newZemen();zare.toString()// '2009-12-27'zare.format('MMM-DD-YYYY')// ነሐሴ-27-2009zare.format('d ፣ MMM DD ቀን YYYY E')// ቅዳሜ ፣ ነሐሴ 27 ቀን 2009 ዓ.ም// TO EthiopianZemen.toEC("2017-09-02").toString()// '2009-12-27'Zemen.toEC(2017,8,2).toString()// '2009-12-17'Zemen.toEC(newDate()).toString()// '2009-12-27'// TO GregorianZemen.toGC("2009-12-27").toDateString()// Sat Sep 02 2017Zemen.toGC(2009,11,27).toDateString()// Sat Sep 02 2017Zemen.toGC(newZemen()).toDateString()// Sat Sep 02 2017
Plans
More formating
Support the browser
Publish on npm
playground github page
Date picker
Date utilities
vue,angular,react wrapper
Contributing
Fork it!
Create your feature branch
Submit a pull request :D
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].