Click here to Skip to main content
16,019,876 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to write function which take three parameters weekday, start date,end date and return all dates
Posted
Comments
Sandeep Mewara 30-Jan-11 13:46pm    
Question not clear.

Further sounds like some date manipulation. Did you try anything yourself?
Henry Minute 30-Jan-11 14:09pm    
Show us what you have tried so far.
#realJSOP 30-Jan-11 14:32pm    
Your requirements aren't very clear. Do you want to specify a weekday, and two dates, and what the date is for the day of the week that occurs between the two dates?

1 solution

If I interpret your question correctly, you want to list the dates of all Tuesdays (for example) between your start and end dates.

A correct answer will depend on how you present your 'weekday' parameter.

Is it an integer representing the day of the week?
Is it a string like "Tuesday"?
Is it the date of the day you are interested in?
 
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