Click here to Skip to main content
16,015,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hii


i need to write a sql query to list all dates between two dates where day is a particular day .
For eg: I pass start date, end date, dayName1,dayName2
dayName may be Sunday,Saturday etc

Please help..

Thanks in advance
Posted

1 solution

check the following example, which Lists all the Weekends of the Current Year using SQL Server:

http://www.sqlservercurry.com/2010/05/list-all-weekends-of-current-year-using.html[^]

you can use this to get the particular day for a given date range.
 
Share this answer
 

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