select * from dbo.fn_returnHolidays('2020-08-22 00:00:00','2020-09-19 00:00:00')

if exists (select * from dbo.fn_returnHolidays('2020-09-18 00:00:00','2020-09-18 00:00:00')) print 1