This action allows you to parse a DateTime from a string using a custom format to extract the fields.
How to use:
Drag the Custom Date from String action on the canvas and link it to other actions used in your process.
Configure inputs and outputs:
[I] Input string ➜ String from which the DateTime will be parsed.
[I] Language ➜ Language used in the Input string.
[I] Format ➜ Date format used in the Input string.
[O] Output date ➜ DateTime representing the parsed date.
Run the process and Check instance to see the output.
The Format field uses standard dotnet format specifiers which are documented here.
The Language selector picks which language should be used when the wanted format contains :
Month names ➜ June[UK] 🆚 Iunie[RO] 🆚 Juin[FR]
Days of the week ➜ Monday[UK] 🆚 Luni[RO] 🆚 Lundi[FR]
Make sure you escape letters used as format specifiersusing quotes otherwise those letters will be treated as placeholders for datetime fields and the action will fail when attempting to parse the input string.