I am having a difficult time writing some logic. I am creating a list of date ranges. For example...
October 1, 1999 12:00 am - October 6, 1999 11:59 pm
October 7, 1999 12:00 am - October 13, 1999 11:59 pm
October 14, 1999 12:00 am - October 19, 1999 11:59 pm
October 20, 1999 12:00 am - October 25, 1999 11:59 pm
This list is based on an employee history. The first week will have the first day the employee worked. The last week will contain the last day that the employee worked. I am having problems with the do while loop that stops the loop when the lastDayWorked is contained within the week range.
There is a bunch of code in between the DO and the WHILE but I am only concerned with the code in the parentheses of the WHILE statement. If you could help me through this brain cramp I would appreciate it.
Thanks