Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Work Tasks Extension and Connector for MES 7​.1

Add variables for the DateTime inputs

  • Last UpdatedJan 21, 2026
  • 1 minute read

Because of a difference in how Work Tasks and MES Stateless API methods treat DateTime inputs, you must create a DateTime variable to convert any DateTime input values from the workflow form from UTC time to local time. For additional information about this issue, refer to DateTime.

This test procedure includes Release Date/Time and Due Date/Time inputs in the workflow form. To address the DateTime issue for these inputs, perform the procedure in Adding a Variable for the DateTime Input to add the following variables:

  • The variable Release DateTime Local of type date and with the expression:

    Convert.ToDateTime
    (XmlVariables.SFFormData.SKRootDefinition.release_time, System.Globalization.CultureInfo.InvariantCulture)
    .ToLocalTime()

  • The variable Due DateTime Local of type date and with the expression:

    Convert.ToDateTime
    (XmlVariables.SFFormData.SKRootDefinition.req_finish_time, System.Globalization.CultureInfo.InvariantCulture)
    .ToLocalTime()

TitleResults for “How to create a CRG?”Also Available in