Add a Date variable
A Date value is a string in the format prescribed by the XML standard for date data, similar to ISO 8601.
Add a Date variable to a task sequence
In a task sequence, you can add a date variable to an Update Data action.
- From the Toolbox, expand the Data category and drag an Update Data action to the desired location in the task.
- In the Update Data workspace, in the Name field, add a meaningful name to describe the item.
- Click next to Update Statements and select Date.
- In the Variable Name field, type the label to identify the variable on tasks.
- To set the values in literal mode, in the Value To Assign field, click the date field to display a calendar dialog box and select the appropriate date, month, and year.
- To set the value using an expression, in the Value To Assign field, click the Expression button , select Expression, and do one of the following:
- Add the expression inline.
- To add the expression using the large expression editor, click to open the Edit Expression Editor and build your expression.
- (Optional) To add another date variable, click next to Update Statements.