I am creating a function in SQL Server to validate if given date is a Christmas day or new year's day. Please kindly advise if following code is OK:
Declare @paramDate date
....
IF Month(@paramDate) = 12 and DAY(@paramDate) = 25
or Month(@paramDate) = 1 and DAY(@paramDate) = 1
BEGIN
....
Above is the simplest way I can think of regardless or timezone and date format