String & DateTime Activities
Manipulate text — search, replace, split, join, format, and validate with regex — and perform date/time arithmetic. 9 String activities and 4 DateTime activities cover the most common text and date workflows.
String Replace
Replaces all occurrences of a substring within a string.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Source string |
| Find | String | Yes | Substring to find |
| ReplaceWith | String | Yes | Replacement text (empty string to delete) |
| CaseSensitive | Boolean | No (default: false) | Match case exactly |
| OutputVariable | String | Yes | Variable to store the result string |
String Split
Splits a string by a delimiter and returns the parts as a StringArray.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Source string to split |
| Delimiter | String | Yes | Separator (e.g., ,, |, \n) |
| OutputVariable | String | Yes | StringArray variable to store the resulting parts |
String Join
Joins a list of strings into one string with a separator.
| Parameter | Type | Required | Description |
|---|
| InputCollection | StringArray / List | Yes | Collection of strings to join |
| Separator | String | Yes | Separator to insert between items (e.g., , ) |
| OutputVariable | String | Yes | Result string |
String Contains
Checks whether a string contains a specified substring. Returns a Boolean.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | String to search in |
| Substring | String | Yes | Text to look for |
| CaseSensitive | Boolean | No (default: false) | Case-sensitive match |
| OutputVariable | String | Yes | Boolean variable — true if found |
String Trim
Removes leading and trailing whitespace (or a specified character) from a string.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Source string |
| TrimChar | String | No | Character to trim (trims whitespace if omitted) |
| OutputVariable | String | Yes | Trimmed result string |
String Format
Formats a template string using positional placeholders {0}, {1}, etc. — similar to C# string.Format().
| Parameter | Type | Required | Description |
|---|
| Template | String | Yes | Template with positional placeholders, e.g. Hello {0}, your order {1} is ready |
| Args | StringArray / List | Yes | Values to substitute into placeholders (index 0, 1, 2 …) |
| OutputVariable | String | Yes | Result string |
| 1 | String Format: |
| 2 | Template: "Hello {0}, your order {1} is ready." |
| 3 | Args: ["{customerName{'}'}", "{orderId{'}'}"] |
| 4 | OutputVariable: "message" |
Regex Match
Applies a regular expression to a string. Returns whether it matched and optionally extracts capture groups.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Text to search |
| Pattern | String | Yes | .NET regex pattern |
| OutputMatchedVariable | String | No | Boolean variable — true if the pattern matched |
| OutputGroupsVariable | String | No | StringArray variable containing capture group values |
| 1 | Regex Match: |
| 2 | Input: "{invoiceText{'}'}" |
| 3 | Pattern: "INV-\\d{6}" |
| 4 | OutputMatchedVariable: "isFound" |
| 5 | OutputGroupsVariable: "matches" |
Regex Replace
Replaces all regex-matched substrings in a string.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Source string |
| Pattern | String | Yes | .NET regex pattern |
| Replacement | String | Yes | Replacement string (supports $1 group references) |
| OutputVariable | String | Yes | Result string |
Regex Is Match
Returns a Boolean indicating whether the input fully matches the pattern. Shorthand for Regex Match when you only need the matched flag.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Text to test |
| Pattern | String | Yes | .NET regex pattern |
| OutputVariable | String | Yes | Boolean variable — true if the pattern matches |
Get Current DateTime
Returns the current date and time.
| Parameter | Type | Default | Description |
|---|
| Utc | Boolean | false | Return UTC time instead of local machine time |
| OutputVariable | String | — | DateTime variable to store the result |
Format DateTime
Converts a DateTime value to a formatted string using a .NET format string.
| Parameter | Type | Required | Description |
|---|
| Input | DateTime | Yes | DateTime variable to format |
| Format | String | Yes | Format string, e.g. yyyy-MM-dd, dd/MM/yyyy HH:mm, MMMM d, yyyy |
| OutputVariable | String | Yes | String variable to store the formatted date |
Add To DateTime
Adds (or subtracts) a duration to a DateTime value.
| Parameter | Type | Required | Description |
|---|
| Input | DateTime | Yes | Source DateTime variable |
| Amount | Int32 | Yes | Units to add (use negative value to subtract) |
| Unit | Days | Hours | Minutes | Months | Years | Yes | Time unit |
| OutputVariable | String | Yes | DateTime variable to store the result |
Parse DateTime
Parses a date string into a DateTime variable using an expected format.
| Parameter | Type | Required | Description |
|---|
| Input | String | Yes | Date string to parse (e.g., 28/03/2026) |
| Format | String | Yes | Expected format, e.g. dd/MM/yyyy |
| OutputVariable | String | Yes | DateTime variable to store the parsed value |