PHP style date utilities for node.js
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
Readme.md
index.js
package.json

Readme.md

Date formatting library (PHP style)

Usage:

var dateformat = require('dateformatter').format;

dateformat('Y-m-d H:i:s', 1355319420000);
> 2012-12-12 13:37:00 (If your timezone is GMT)

Installation:

npm install dateformatter

Formats:

Should support most PHP date formats, see: http://php.net/manual/en/function.date.php