Modify Date
AutomatR.DefaultActivities.Date.ModifyDate
The "Modify Date" activity in AutomatR is designed to modify a date value by adding or subtracting days and determines the first or last day of the week, month, or year. This activity provides flexibility in manipulating date and time values according to your automation requirements.
Properties
Name | Description |
---|---|
Input | |
Date To Modify | Specify the date and time to be modified. It supports only DateTime variable. |
Duration Type | Select the suitable value from the dropdown menu for date and time modification. |
Modify By Value | Select the appropriate value to be added or subtracted. Double variable or argument . |
Modification Type | Choose the appropriate value from the dropdown list for the modification type. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Modify Date" activity. This can be useful for handling synchronization issues. Integer variable or argument containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | It saves the result as a DateTime variable, which can be used in other subsequent activities. DateTime variable or argument. |
How to use:
- Drag and drop the "Modify Date" activity onto the workflow.
- Configure the properties by specifying the date and time to be modified, the type of modification (addition or subtraction), duration type, and the value to be added or subtracted.
- Optionally, configure the delay and customize the display name.
- Execute the workflow to modify the specified date and time.
Example: Consider an example where the "Modify Date" activity is used to add 3 days to the current date and time:
Modify Date:
Display Name: "Add Days"
Date To Modify: currentDate
Modification Type: Add
Duration Type: Days
Modify By Value: 3
Result: modifiedDate
In this example, the activity adds 3 days to the current date and time, and the result is stored in the "modifiedDate" DateTime variable for further use in the workflow.