How to filter by day of week

Hi @Konrad_N_A and welcome in the MongoDB Community :muscle: !

I’m the Java / Python guy here so I can’t really translate to C# but at least I got the query working:

db.coll.find({$expr: {$not: {$eq: [{$dayOfWeek: "$dateField"}, 1]}}})

Cheers,
Maxime.

1 Like