Shane,

You had it right. The problem is:
Code:
 $date = @date 



There is a reason why I used this code: Every 30 minutes a new task will be scheduled. There is a possiblity that tasks will be scheduled the next day. That's why I used this code:
Code:
 
If $time='00:00' OR $time='24:00'
$date = DateMath($date, 1)
EndIf



The problem is the date form. I have to find a way to change YYYY/MM/DD into MM/DD/YYYY.

UDF: Datemath
Quote:


Date parameters must be in the form of YYYY/MM/DD.


If a date is passed as "date1" and a number of days is passed as integer, the resulting date will be returned in the form of YYYY/MM/DD





Kixtart 4.22 Reference
Quote:


@Date Date (in the format YYYY/MM/DD)





www.jsiinc.com
Quote:


Trigger 0:
Type: Daily
DaysInterval: 1
StartDate: 04/30/2000
EndDate: 00/00/0000
StartTime: 17:30
MinutesDuration: 0
MinutesInterval: 0
Flags:
HasEndDate = 0
KillAtDuration = 0
Disabled = 0









De beste wensen en een gelukkig nieuw jaar
Best wishes and a happy new year
_________________________
Co