dateformatter

Date format library, PHP style

Date formatting library (PHP style)

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

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

npm install dateformatter

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