I am using Mongoose & Node.js for my webserver.
As a part of one of my document schemas, I have a \'timestamp\' field.
The line for it in the schema is:
This works fine for me
db.eurusd.ticks.findOne({_id:ObjectId("518636777055000000000000")}).t.getTime()
returns time in miliseconds, where returned document has structure
{
"_id" : ObjectId("518636777055000000000000"),
"t" : ISODate("2013-05-05T10:37:43Z"), // date data type
"ask" : "Joe",
"bid" : 33
}