The "w" parameter of the date() function gives you day-of-week. So begin a loop with today's date and then advance from that date forward (or backward) calling date() with the "w" parameter until you reach the desired value.

che_anj

11-27-2007, 08:28 AM

Ive got this code that gets the start date of the week.. Anyone has idea how to get the enddate of the week..