ParseDateTime

ParseDateTime

What to use it for

Prerequisites for usage

Essential properties to set

Use this Activity to be able to do calculations or manipulations of dates or times, for instance calculate remaining time, or the date 7 days from now.

 

 Read more

This Activity turns the input data into a specific type of object (called DateTime). .Net enables objects of the DateTime type to be manipulated in various ways.

 
  • Date string
  • Date
  • Parsed successfully

Misc

PropertyWhat is itHow does it work
Date string

 

The location where to find the date string, in or as part of the document.

Provide a string, of either:

  • Constant, e.g. an xpath.
  • Variable, of the type string (use the variable editor at the bottom of the screen to define a variable).

 

Date

 

The variable that you are going to use for storing the datetime data.

Once stored in a variable, you are able to re-use the data in the current sequence by referring to this variable (for example, modify the datetime using the Assign Activity).

Create a new variable, of the type DateTime.

  1. Provide a name that is unique to this variable.
  2. Use the dropdown in 'Variable type' and browse for the DateTime type (mscorlib > system).

 Read more
Why do I need variables

You can use variables to create a more flexible and sustainable Workflow.

Variables are mostly used in advanced Activities such as the Diversity Activities. These Activities often have two parts:

  • One part is to identify where to get data that serves as input for the Activity.
  • One part is to identify where to store data that serves as output for the Activity.

For the Diversity Activities it is common to store the data resulting from the Activity into a variable. Once stored in the variable, you can re-use the stored value elsewhere in the Workflow, by referring to the variable.

To create a variable to store data
  1. Click on the Variables button, below the Workflow. a panel will appear, containing an editable table.
  2. In the table click on 'Create variable' to start creating a new variable.
  3. Provide a name for the variable, preferably a name that describes its contents. Use camel case.
  4. Indicate the type of variable (e.g. boolean, integer, string, etc.). You can find specific types using 'Browse for types...'.
  5. Moving to another row saves this data to a new entry.

You can now use the name of this variable into one of the fields of the current Activity, or in Activities that are next.

Parsed successfully

 

A variable to you are going to use to store whether the datetime is stored correctly.

Once stored in a variable, you are able to create rules based on the data in the variable, for instance a sub-sequence for each result of the boolean.

Create a new variable, of the type Boolean.

 Read more
Why do I need variables

You can use variables to create a more flexible and sustainable Workflow.

Variables are mostly used in advanced Activities such as the Diversity Activities. These Activities often have two parts:

  • One part is to identify where to get data that serves as input for the Activity.
  • One part is to identify where to store data that serves as output for the Activity.

For the Diversity Activities it is common to store the data resulting from the Activity into a variable. Once stored in the variable, you can re-use the stored value elsewhere in the Workflow, by referring to the variable.

To create a variable to store data
  1. Click on the Variables button, below the Workflow. a panel will appear, containing an editable table.
  2. In the table click on 'Create variable' to start creating a new variable.
  3. Provide a name for the variable, preferably a name that describes its contents. Use camel case.
  4. Indicate the type of variable (e.g. boolean, integer, string, etc.). You can find specific types using 'Browse for types...'.
  5. Moving to another row saves this data to a new entry.

You can now use the name of this variable into one of the fields of the current Activity, or in Activities that are next.

Display nameName of the Activity.Leave at default, or edit the name to reflect the type of parsing.