I'm posting a date to elasticsearch and I'n using Date.now()
var unixtime = Date.now();
I'm getting the output like this: 1373508091156
Then I use this:
var date = new Date(unixtime*1000);
The output now is this:
Thu Sep 27 45494 05:19:16 GMT-0400 (EDT)
I'm not sure why I'm getting this is really wrong date :/
Stop multiplying it by 1,000. Your problem will be solved.
Two options:
1.
var date = new Date()
2.
var date = new Date(unixtime)