Add a DateTime variable

A DateTime value is a string in the format prescribed by the XML standard for date data, similar to ISO 8601. 

Note:  Architect currently does not support offsets or timezones on DateTime values. You cannot specify offset or time zone, but Architect reports the value in an expression editor function as if it were UTC. If you create a function that calls ToString(datetime), Architect returns the value with a Z appended to the string and treats the value as UTC.

Add a DateTime variable to a task sequence

In a task sequence, you can add a date | time variable to an Update Data action.

  1. From the Toolbox, expand the Data category and drag an Update Data action to the desired location in the task.
  2. In the Update Data workspace, in the Name field, add a meaningful name to describe the item.
  3. Click next to Update Statements and select  DateTime.
  4. In the Variable Name field, type the label to identify the variable on tasks.
  5. To set the values in literal mode, in the Value To Assign field, do the following:
    1. Click the date field to display a calendar dialog box and select the appropriate date, month, and year.
    2. Click the time field and select the appropriate time value, including AM and PM.
  6. To set the value using an expression, click the Expression modes button , and do one of the following:
    • Select Expression and add the expression inline.
    • Select Expression and click to open the large expression editor and build your expression.
    • Select DateTime Builder to build a DateTime value with the builder.
  7. (Optional) To add another DateTime variable, click next to Update Statements