I'm using the DateAdd function and also Date + 14 etc and DateAddW (user defined, provided by MS)
The problem is as soon as I try to add more than a few days the results I get are very odd. For example if I add 10 days I get a result that is months in the future, if I add say 14 days I get a result that is months in the past. Whichever methods I use I get these strange results when going beyond a few days.
I'm using the result in an SQL insert statement to schedule a task.
If anyone can shed some light on what's occurring it would be greatly appreciated.
The problem is as soon as I try to add more than a few days the results I get are very odd. For example if I add 10 days I get a result that is months in the future, if I add say 14 days I get a result that is months in the past. Whichever methods I use I get these strange results when going beyond a few days.
I'm using the result in an SQL insert statement to schedule a task.
If anyone can shed some light on what's occurring it would be greatly appreciated.