my oracle query return me a set of row like this :
FRAVN FRLIL 2012-11-15 12:00:00
I've to check if the current row is actually present in mongo.
If not, I've to insert it.
So, I did the following in Groovy :
BasicDBObject query = new BasicDBObject();
query.put("Origin", it.origin_city_code);
query.put("Destination", it.destination_city_code);
query.put("Day", it.day);
returnQuery = Agoffer.getCount(query)
But I have no result cause of the Date format (I'm sure that my data is actually in the data base)
If I remove the Day in my query like this :
BasicDBObject query = new BasicDBObject();
query.put("Origin", it.origin_city_code);
query.put("Destination", it.destination_city_code);
returnQuery = Agoffer.getCount(query)
println(returnQuery["Day"])
give me this :
Wed Jun 13 00:00:00 CEST 2012
My question is : How can I match the date between Oracle and mongoDB ?
Thank you :)