Hi Robert,

I'll save you some time on the date manipulation....

TDateTime is a float. The integer part represents the day while the decimal part represents time.

Its your standard offset idea, so 0 equates to 12/30/1899 12:00 am.

To offset this by 1 second, you add 1/86400 (86400 = 24 x 60 x 60 = The number of seconds in 1 day). To offset by 1 day, you add 1. Using this method, you can go forward and backwards in time quickly and easily.

I've used this kind of manipulation quite extensively for scheduling in the past... it works a treat.