Subtract Time from a Specified Date and Time
To subtract time from a specified date and time, do the procedure in this topic.
Good to Know
- In most text fields, you can use process data variables as an alternative to literal data values.
- You can configure whether this activity waits for other activities before it runs.
For more information, refer to How Do I Configure an Activity to Wait for Other Incoming Activities?
How to Start
- Open Process Builder.
For information about how to open this screen, refer to Process Builder.
- Do one of these:
- Click Subtract Date Time .
Procedure
- On the Subtract Date Time screen, complete these fields
as necessary.
Field Name Value Input Date Time
- Description:
- Specifies the reference date for your date calculation.
- Allowed Values:
-
- Custom Attributes - Specifies a process data variable that stores the date-time value and your date-time format.
You can use App Data screen to specify a process data variable.
You can also use a custom date-time format. For more information, refer to Customize Your Date-Time Format.
- Static - Specifies a static date and time.
- Now - The date and time the system activity starts at runtime.
- Custom Attributes - Specifies a process data variable that stores the date-time value and your date-time format.
- Default Value:
- Custom Attributes
- Example:
- Refer to:
Subtract
- Description:
- Specifies the time to subtract from the Input Date Time.
- Allowed Values:
-
- An integer, or a process data variable that stores an integer.
You can use App Data screen to specify a process data variable.
- The time unit.
Options are:
- Seconds
- Minutes
- Hours
- Days
- Weeks
- Months
- Years
- An integer, or a process data variable that stores an integer.
- Default Value:
- Days
- Accepts Variables:
- Yes
- Example:
- If the value is set to 10, and the time unit is set to Days, 10 Days are added or subtracted.
Date String
- Description:
- Specifies the process data variable that stores the result received from the date calculations if it is in the Date Time format.
The results of the date calculations that changes from the Date Time format to a String. The format of the string is specified in the list.
- Allowed Values:
- A process data variable that stores the result in the selected String format.
- Default Value:
- None
- Accepts Variables:
- Yes
- Example:
- Refer to: