RAZ-1920: Search: Searching for dates wasn't working properly with MS SQL