In chrome's console:
(new Date(Date.now())).toLocaleString()
returns "9/5/2014 9:43:08 PM"
new Date(Date.now())
returns 'Fri Sep 05 2014 21:43:08 GMT+0530 (IST)'
In node.js REPL/app:
(new Date(Date.now())).toLocaleString()
returns 'Fri Sep 05 2014 21:43:18 GMT+0530 (IST)'
which is the same as running new Date(Date.now())
What is the change I need to do to get the same output format as chrome.