I get the error above on the User::GV_SYNCHTIME in the DateAdd function
It is in the Read/Write Variables and is set as DateTime. What is the issue please......
Public Sub Main()
Dim SynchTime As Date = DateAdd(DateInterval.Second, -10, Dts.Variables("User::GV_SYNCHTIME").Value)
Dts.Variables("User::GV_SYNCHTIME_TEN").Value = SynchTime
Dts.TaskResult = ScriptResults.Success