将日期时间值从C#脚本组件传递到SSIS日期时间变量

时间:2015-08-18 21:11:24

标签: c# .net ssis

我有以下代码:

Dt1 = (DateTime) Dts.Variables["User::FileTrxDT"].Value;
Dt1= Dt1.AddDays(1);
Dts.Variables["User::FileTrxDT"].Value = (DateTime) Dt1.ToString();

它在运行时提供异常。我可以把日期寄到但不能发回去。

非常感谢任何方向/帮助。

0 个答案:

没有答案