date - How to compare time in MongoDB with different time stamp and format? -


i have dataset looks following, time record in timezone gmt:

{"id":1,"timestamp:"mon, 11 may 2015 07:57:46 gmt"} {"id":2,"timestamp:"mon, 11 may 2015 08:57:46 gmt"} 

i count how many rows time period:

from isodate("2015-05-10t01:40:08.963z") isodate("2015-05-12t01:40:08.963z") 

is possible this?

there no normal way of doing it. better convert database normal format , faster better.

what use foreach every document , modify following javascript function.


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -