Mongodb datatime query failed?

It is hard to guess from the information you have included, but I would guess that your data types are inconsistent. Can you check that the dates stored in mongodb are not strings If all the information was created by morphia (and the java driver) then you should not have this problem, but other drivers/languages are not so careful I would also suggest posting on the morphia list to get help. Please include your code example for the query, how the data is saved, and sample data from the shell: groups.google.com/group/morphia.

It is hard to guess from the information you have included, but I would guess that your data types are inconsistent. Can you check that the dates stored in mongodb are not strings. If all the information was created by morphia (and the java driver) then you should not have this problem, but other drivers/languages are not so careful.

I would also suggest posting on the morphia list to get help. Please include your code example for the query, how the data is saved, and sample data from the shell: groups.google.com/group/morphia.

{ "lastActivityTime" : { "$lt" : { "$date" : new Date(2011,2,9,4,19,3)}}} The type is not string。 You can see Javascript's date type。 In morphia。 . Filter("createdate >=", date)//The date type is not String. It's date type.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions