Modify Date
Performs date and time arithmetic and formats the output.
Behaviour
Risk: None · Idempotent: Yes · Safe to retry: Yes · Recovery: Not replayed after a crash
Package System activities VeloPhex.System.Activities 0.7.1-rc.12 · Supported (Core profile) · type id velophex.system.modifyDate
Properties#
Input#
Base Date#
BaseDate · DateTime? · Optional · Default: Not specified in package metadata
Starting date. Default is current date and time if empty.
Add Years#
AddYears · Int32 · Optional · Default: 0
Number of years to add (use negative to subtract).
Add Months#
AddMonths · Int32 · Optional · Default: 0
Number of months to add (use negative to subtract).
Add Days#
AddDays · Int32 · Optional · Default: 0
Number of days to add (use negative to subtract).
Add Hours#
AddHours · Int32 · Optional · Default: 0
Number of hours to add (use negative to subtract).
Add Minutes#
AddMinutes · Int32 · Optional · Default: 0
Number of minutes to add (use negative to subtract).
Add Seconds#
AddSeconds · Int32 · Optional · Default: 0
Number of seconds to add (use negative to subtract).
Period#
Period · String · Optional · Default: None
Moves the result to the start or end of its day, week, month or year, after the additions. Weeks start on the Culture's first day.
Allowed values: None, StartOfDay, EndOfDay, StartOfWeek, EndOfWeek, StartOfMonth, EndOfMonth, StartOfYear, EndOfYear.
Format#
Format · String · Optional · Default: Not specified in package metadata
Optional custom format string (e.g. yyyy-MM-dd HH:mm:ss, d, O).
Culture#
Culture · String · Optional · Default: Not specified in package metadata
The culture for Format and the first day of the week, e.g. en-US or de-DE. Empty: invariant.
Output#
Result Date#
ResultDate · DateTime · Output
The resulting modified DateTime.
Formatted Date#
FormattedDate · String · Output
The modified DateTime formatted as a string.
Retry and risk#
This activity is safe to retry: running it again after a transient failure does not repeat a side effect. If a run is interrupted and the outcome of a step is unknown, the step is never retried automatically (what to do). How activities declare this: characteristics, retries and risk.
Every activity also has the engine's common properties: Timeout and Continue On Error.
Generated from VeloPhex.System.Activities 0.7.1-rc.12. Category: Date & Time. Keywords: date, time, add, subtract, format, datetime, start of month, end of month.
Properties
Input
Output
Retry and risk