Format Date Time Action—Setting Properties

The Format Data Time action is used to enter a date/time in a specified format and populate a variable with the result. The variable must be created in an earlier step using the Create Variable action.

You can specify the date and time in the properties dialog box, or you can use the current (at runtime) date/time or a user-entered date/time. Optionally, you can also adjust the date/time by a specified increment.

To set Format Date Time properties

  1. From the Task Builder Available Actions pane, open the Text folder and double-click the Format Date Time action or drag it into the Steps pane.

  2. In the Date/time format box, select a format.

  3. In the Populate variable with result box, select the variable to populate.

  4. If you want to show the time in 24-hour format, clear the 12 hour format check box.

  5. If you are using 12-hour format and want to include AM or PM, select Include AM/PM in result.

  6. If you want to use a specified date/time or a user-entered date/time, or if you want to adjust the date/time, click the Advanced tab and enter the properties as follows:

  7. To set the Description tab properties, refer to Description Tab Options.

  8. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  9. When finished, click OK to save settings and close the properties dialog window.

See Also

About Actions

Adding Task Steps

Format Date/Time Action