Please share your ideas regarding the scenario for further proceeding.

Posted by Vijetha under C# on 4/12/2012 | Points: 10 | Views : 789 | Status : [Member] | Replies : 3
Hi,
Scenario: Have some range for date like april 1st to april 22nd
When i enter the date range i should get total weeks in that range and the start date and end date of each week.
In the above range there are 3 weeks
1st week-(Start date)1st april to (End Date)7th april
2nd Week-(Start Date)8th April-(End Date)14th April
and so on.

So how do i proceed?

Regards,
Vijetha.M.M




Responses

Posted by: Leila on: 4/12/2012 [Member] Starter | Points: 25

Up
0
Down
Do you mean by week 7 days starting by the first day of the range?
if so, you can calculate number of days.
and then divide the number of days by 7 and getting the weeks.
If this is what you want and you need the code, i'll try to put it later

Thanks,
Leila

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijetha on: 4/12/2012 [Member] Starter | Points: 25

Up
0
Down
Hey leila,
Exactly thats required as u told.Please provide me the code if possible.

Regards,
Vijetha

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Leila on: 4/15/2012 [Member] Starter | Points: 25

Up
0
Down
Hi Vijetha

To get the code, refer to:
http://www.dotnetfunda.com/feature/x-14/2293/weeks-of-dates-range


Thanks,
Leila

Vijetha, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response