Created
February 25, 2012 22:26
-
-
Save dtryon/1911183 to your computer and use it in GitHub Desktop.
use dateFormatter module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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