The .NET documentation for MatchType.Win32 for Net-Core and Net 5+ versions says:
Match using Win32 DOS style matching semantics.
'*', '?', '<', '>', and '"' are all considered wildcards. Matches in a traditional DOS / Windows command prompt way.
https://learn.microsoft.com/en-us/dotnet/api/system.io.matchtype?view=net-6.0
How do you use the syntax for the '<' and '>' wildcards? I can not find that anywhere and the only thing I can find about DOS is the '*' and '?' wildcards. I know in Windows Explorer you can do a search like "date:>01/01/2021" but that is more of an operator than a wildcard and gives a syntax exception if using it with
var query = Directory.EnumerateDirectories(
basefolder,
"date:>01/01/2021",
new EnumerationOptions() { MatchType = MatchType.Win32 });
Passing regular old "*" as searchPattern
still returns all entries, trying to pass "<" or ">" alone as searchPattern
did not produce any results on folders I tried.