M
Mark A. Sam
Hello,
I need a procedure to allocated dates withing a date range into weeks with a
starting and ending date for each week within the range. For example, if
the selected date range is 2/1/08 to 2/21/08 the beggining and ending dates
would be allocated like this:
Week Date1 Date1
1 2/1 2/2
2 2/3 2/9
3 2/10 2/16
4 2/17 2/21
I would need to create 4 records with those dates inserted into the date
fields.
In my mind it would be taking the remaning days from starting date to the
end of the first week, then allocating the dates for the remaining weeks
based on the number of days remaining. I can't work out an efficient
method.
If anyone can guide me somehow or if there is an example worked out, I'd
appreciate any help.
Thanks and God Bless,
Mark A. Sam
I need a procedure to allocated dates withing a date range into weeks with a
starting and ending date for each week within the range. For example, if
the selected date range is 2/1/08 to 2/21/08 the beggining and ending dates
would be allocated like this:
Week Date1 Date1
1 2/1 2/2
2 2/3 2/9
3 2/10 2/16
4 2/17 2/21
I would need to create 4 records with those dates inserted into the date
fields.
In my mind it would be taking the remaning days from starting date to the
end of the first week, then allocating the dates for the remaining weeks
based on the number of days remaining. I can't work out an efficient
method.
If anyone can guide me somehow or if there is an example worked out, I'd
appreciate any help.
Thanks and God Bless,
Mark A. Sam