A JavaScript library that implements a date() function that behaves like the date() function in PHP.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
README.md
date.js

README.md

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 http://stevenlevithan.com/assets/misc/date.format.js, 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.
http://www.opensource.org/licenses/mit-license.php

Copyright (c) 2008-2010 Andreas Blixt andreas@blixt.org