Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xwartz/dateformat
Extend the Date Object
https://github.com/xwartz/dateformat
Last synced: about 1 month ago
JSON representation
Extend the Date Object
- Host: GitHub
- URL: https://github.com/xwartz/dateformat
- Owner: xwartz
- Created: 2015-05-22T15:26:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-23T02:18:35.000Z (over 9 years ago)
- Last Synced: 2024-10-14T08:10:50.592Z (2 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
date-format
------Extend the Date(prototype) object.
### Usage
```js
var d = new Date('2015-5-21')
```format
```js
var n = d.Format('YYYY-MM-DD') // 2015-05-21
var e = d.Format('YYYY年M月DD日') //2015年5月21日
```### License
MIT