https://github.com/blixt/js-date
A JavaScript library that implements a date() function that behaves like the date() function in PHP.
https://github.com/blixt/js-date
Last synced: 5 months ago
JSON representation
A JavaScript library that implements a date() function that behaves like the date() function in PHP.
- Host: GitHub
- URL: https://github.com/blixt/js-date
- Owner: blixt
- Created: 2010-07-28T16:47:41.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2010-07-28T16:48:36.000Z (almost 16 years ago)
- Last Synced: 2025-10-11T15:58:39.916Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 88.9 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JavaScript date() function
## Information
This library implements a `date()` function that behaves like the `date()` function in PHP (But in true JavaScript spirit, it uses milliseconds instead of seconds.)
Also adds `format(f)` and `getWeekNumber()` methods on instances of `Date`.
Based on , rewritten by Andreas Blixt to match the PHP `date()` function.
## Example
alert(date('Y-m-d H:i:s'));
## MIT license
This project is licensed under an MIT license.
Copyright (c) 2008-2010 Andreas Blixt