Create a Date and Nullable date variable

  1. In the New variable dialog box, enter a unique Name for the variable.
    By default, the name of the variable becomes the ID of the variable; however, you can change the ID if needed.
  2. On the Type list, select Date or Nullable date. (Default: String)
  3. Optional. To use the variable for process initialization, select Initialization.
  4. For Value, do either of the following:
    • Click the Calendar picker and select the required date and time.

    • Click fx.

      By default, @Today macro appears in the Value box. Use @Today macro to get the current date, or past/future date by adding or subtracting the number of days. For example,@Today+5. When you create a job on a process, or use a business rule that has a variable using @Today, on job creation, the runtime value of the variable is displayed as current date, or current date + (plus) or - (minus) the number of days specified (if any).

      When you create a job on a process that has a initialization variable using @Today, the runtime value of the variable is displayed as the current date, or current date + (plus) or - (minus) the number of days specified (if any). The time is set to 12 AM at runtime. However, you can change the date and time, as required.

  5. Click Save.
    The date variable appears on the Variables page.
  6. To modify the variable, click the variable and modify as needed, and click Update.