Hi
i would like to set a search where i check the year part in a date property.
for example
i would like to get all objects, that have the year 2022 in some date property.
thank you
Hi
It's in VAF.
I'm using MFSearchBuilder and SearchCondition.
If i would be using your approach, i would have to first do one search, and get a huge result, and then another one where i would be checking the year part.
for now i'm using the idea i wrote before - date between.
but if there is some better way...
thank you
If you're using the VAF Extensions then there's a nice "Year" extension method you can use: VAF.Extensions.Community/DateTimes.cs at master · M-Files/VAF.Extensions.Community (github.com)
If you're not using the VAF Extensions then take a look at how the "Year" extension method works and mimic that.
Regards,
Craig.