sql query with string of a date as parameter doesn't work

welcome to shbcf.ru