Sebastian Wulf
Posts: 0
Joined: Sat Feb 23, 2013 1:20 am

query date columns

How can i query date columns

I tried it this way

{"_createdAt":"2013-02-22 15:37:48.841"}.

But the result is empty. The value is correct (caopy and paste)

Thanks for your help

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

query date columns

I'm afraid it's a bug, but we'll test this again.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

query date columns

Hello!

The correct request is:code{"_createdAt": {$date: "2013-02-22T15:37:48.841Z"} }/code

Reiner Saddey
Posts: 0
Joined: Sun Feb 17, 2013 7:19 am

query date columns

Thanks Katya, Great!

Can you give a pointer to some information on why and how this is working?

I had a look at MongoDB docs and did some googling, but to be frank, I'm at a complete loss trying to understand the details of this code fragment :-(

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

query date columns

http://docs.mongodb.org/manual/refere... - find here something to explain

Return to “Issues”