[#XDSB-94] queries using *From and *To parameter names fail to find exact value.

Improved query by normalizing datetime