https://github.com/roppa/date-utilities
https://github.com/roppa/date-utilities
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/roppa/date-utilities
- Owner: roppa
- Created: 2015-02-13T15:24:04.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-28T13:59:54.000Z (over 11 years ago)
- Last Synced: 2025-02-14T18:36:31.597Z (over 1 year ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
#Date Utils
A set of utilities using dates. Can be used as a node module or in the browser.
##Usage
###Node.js
```
dateUtils = require('date_utils');
```
###Browser
Global "dateUtils" is exposed.
##Functions
###getDayString
```
dateUtils.getDayString("mon"); //returns "Monday"
dateUtils.getDayString(0); //returns "Monday"
```
###getMonthString
```
dateUtils.getMonthString("jan"); //returns "January"
dateUtils.getMonthString(0); //returns "January"
```
#Testing
```
make test
```