You can copy and paste the code below into an SSMS window and run it. It does what I understood you want to do. If this works, compare with your actual data and see what the difference is - perhaps two digit years? Or some other anomaly in the data?
CREATE TABLE #tmp(DateFromYYYY INT, DateFromMM INT, DateFromDD INT,
DateToYYYY INT, DateToMM INT, DateToDD INT );
INSERT INTO #tmp VALUES
(2010,12,31, 2017,1,1), -- this should pass the criteria
(2016,10,2, 2017,11,10), -- this will not pass the criteria
(2010,12,31, 2016,1,19) -- this will not pass the criteria
-- this query will return one row.
SELECT * FROM
#tmp
WHERE
CAST(CAST(DateFromYYYY * 10000 + DateFromMM * 100 + DateFromDD AS VARCHAR(8)) AS DATE) <= GETDATE()
AND CAST(CAST(DateToYYYY * 10000 + DateToMM * 100 + DateToDD AS VARCHAR(8)) AS DATE) >= GETDATE();