0

There's a handful of posts on inserting timestamps into Mongodb via MongoSkin, but nothing on the return end (other than pulling date from ObjectID).

After running findOne (which includes a MongoDate field), console-log reads the data field as ISO date, but is there an internal function that pulls the ->sec / timestamp.

Michael Mikhjian
  • 2,760
  • 4
  • 36
  • 51

1 Answers1

0

The answer is: new Date( response.Date ).getTime()

josliber
  • 43,891
  • 12
  • 98
  • 133
Michael Mikhjian
  • 2,760
  • 4
  • 36
  • 51