Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A JavaScript library that implements a date() function that behaves like the date() function in PHP.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 README.md
Octocat-spinner-32 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.