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?