Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A JavaScript library that implements a date() function that behaves like the date() function in PHP.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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

Something went wrong with that request. Please try again.