Set Job Group Variable

Mary4832 (1 post)
September 26, 2016 05:16 PM
Accepted Answer

How do I set a Variable Update Task to update "MyJobVar" to the current date and time? I tried DateTime.Today and the windows standard GetDate() in the Set value to: 

Bill Staff (604 posts)
September 28, 2016 02:27 PM
Accepted Answer

You need to format the "Set value to" as:

%=DateTime.Now%

and be sure the "Expand variable tokens at runtime" box is checked.

Note that if you are using version 4.3.1 or earlier this may not work properly with some combinations of data types, due to a bug. If you have any hotfixes applied and you version is 4.3.0001.16167 or later, it should work correctly.

Replies are disabled for this topic.