Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i stored set of dates under [holiday dates] in sql table
i want to disable those days in datetimepicker

What I have tried:

currently, i am using foreach loop to get dates from table, and using datimepicker_value changed event to diable dates.
Posted
Updated 18-Mar-18 23:24pm

1 solution

You didn't provide the other table's name, nor the names of the columns, so substitute where applicable.
SQL
SELECT a.[my_date_column]
FROM dbo.[mytable] AS a
RIGHT JOIN dbo.[holiday_dates] AS b 
ON CONVERT(DATE,a.[my_date_column]) <> CONVERT(DATE,b.[holiday_date]);
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900