An open API service indexing awesome lists of open source software.

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.

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