OK - so if you are simply looking for the NEXT sequential Monday, my UDFs will handle that nicely. It will return a date in the format YYYY/MM/DD HH:MM:SS
 Code:
$aTarget = 0,1,'00:00:00'	; "NEXT", "MONDAY", "midnight (or any desired time)"
$Date = NextRunDate($aTarget)
'Date: ' $Date ?
The example above returns the date of the next occurring Monday.

The NextRunDate takes an array with 3 elements. The first defines the "which Day", which can be next, first, second, third, fourth, or last. (numeric 0-5). The next element is the Weekday (1-7 for Mon-Sun, 0 for next), and the third element is the Time to run.

When using the "next" options, the time comes into play.. an array of 0,0,22:00 will return the next date that 10pm occurs - today if before 22:00 or tomorrow if it's after 22:00.

This UDF is used in two Kix-based services that schedule events to occur on my servers.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D