Skip to content

Instantly share code, notes, and snippets.

@dtryon
Created February 25, 2012 22:26
Show Gist options
  • Save dtryon/1911183 to your computer and use it in GitHub Desktop.
Save dtryon/1911183 to your computer and use it in GitHub Desktop.
use dateFormatter module
var dateFormatter = require('../utilities/dateFormatter.js');
app.get('/page', function(req, res){
var d = new Date();
console.log(dateFormatter.format(d));
// prints out 25/2/2012 1:06 AM
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment