How to filter documents in $match by the last 36 months in MongoDB aggregator

I want to only obtain documents where this specific field “EffectiveDate” is greater than 36 months ago. I have tried: “$match” : {“member.MemberEnrollmentSpans.MemberEnrollmentSpan.EffectiveDate”: {$gte: ObjectID.createFromTime( – 36*31*24*60*60)} } But It doesnt seem to like the ‘ObjectID.createFromTime’ statemente, it say my error is at the ‘O’ position Does $match operator not accept this?