'Complex Query in Mongodb using driver (subtraction of dates and mod)
I want to write a Query like this:
Builders<Test>.Filter.Mod(s=> (s.StartDateTime - requiredDate).Days, s.frequence, 0)
this is not working.
Also a query like this:
s => DateTime.DaysInMonth(s.StartDateTime.Year, s.StartDateTime.Month) - s.LastDays < requiredDate.Day
This is not working too.
Both are giving me "Not supported" error.
Is there any equivalent way of querying such thing?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
