Work Item Query via TFS API and the dayPrecision parameter

March 7, 2016

By default TFS doesn’t pay attention to the time part in work item queries when comparing datetime values. If you want to launch a query and you need to take into account the exact timestamp, you must switch off the dayPrecision parameter in the Query constructor.

dayPrecision

using the dayPrecision parameter in the Query constructor

MSDN documentation: https://msdn.microsoft.com/en-us/library/bb133075(v=vs.120).aspx

Mystery resolved!