Comparing dates inside of mapreduce

From: Vegar Vikan <vegar@xxxxxxxxxx>
To: mongodb-user <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Mon, 25 Apr 2016 14:01:54 -0700 (PDT)
Why ads?
I posted this question on stackoverflow 
<http://stackoverflow.com/questions/36843415/mongodb-mapreduce-with-comparsion-of-dates>, 
but it didn't get any attention, so I try here as well...

I have a map function in a mapreduce query where I try to compare a couple 
of dates.

Lets say that the documents contains a property 'Created' with type ISODate:

{
  Created: ISODate("2016-01-01T12:00:00.000+0000")
}

In my map/reduce method, I pass a date through the scope:

{
   start: ISODate("2015-01-01T12:00:00.000+0000")
}

and in my map method, I print out the following

function() {
   print(this.Created);
   print(start);
   print(this.Created > start);
}

I'll get the following output in my log:

2016-04-25T16:19:04.921+0200 I -        [conn129] ISODate("2016-01-01T12:00:00.000+0000")
2016-04-25T16:19:04.922+0200 I -        [conn129] Sat Jan 01 2015 13:00:00 GMT+0100 (Vest-Europa (normaltid)) 2016-04-25T16:19:04.922+0200 I -        [conn129] false 


Why is the dates printed differently?
How can I compare the start-date with the created date?

regars,
-Vegar

-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/9fc028b4-3f48-4dbb-b76b-9b017eec9adc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?