I am trying to compare dates to only display results from the selected year.
Here is my setup:

1.Is Label for testing purposes just to see if DateValue gets correct date
Text property of first label:
Text(DateValue("01/01/"&Dropdown1.Selected.Value,"en-US"), DateTimeFormat.LongDate)
Text property of second label:
Text(DateValue("12/31/"&Dropdown1.Selected.Value,"en-US"), DateTimeFormat.LongDate)
2. Its Dropdown1 with Item set to:
[2017,2018,2019,2020]
3. Is gallery with Item set to:
Filter(
'[dbo].[Holiday]',
HolidayDate >= DateValue("01/01/"&Dropdown1.Selected.Value,"en-US") &&
HolidayDate <= DateValue("12/31/"&Dropdown1.Selected.Value,"en-US")
)
I get the error:
An error occurred on the server
How would I solve that?
Here is the Database structure:
CREATE TABLE Holiday (
HolidayID int IDENTITY(1,1) PRIMARY KEY,
HolidayDate date NOT NULL,
HolidayDescription varchar(100) NOT NULL,
HolidayRealDate date NOT NULL,
LongWeekendOption bit NOT NULL,
OptionalHoliday bit NOT NULL
);
Database View:
