You can use the Date constructor, which takes a few milliseconds and converts it to a JavaScript date:
var d = Date(Date.now()); d.toString()
In reality, however, doing Date(Date.now()) does the same thing as Date() , so you really only need to do this:
var d = Date(); d.toString()
source share