Working with Days Between Dates Process

Navigation:  How to Work with Processes > Working with the Date Processes Group >

Working with Days Between Dates Process

Previous pageReturn to chapter overviewNext page

 

Process Purpose

 

The Days Between Dates process is used to calculate the number of days between two given dates. The result is stored in a variable.

 

 

When you add a process, you are required to define its settings. This occurs in the process's properties window which is displayed automatically after having added the Days Between Dates process.

If any subsequent edition is required, double-click the process to open its properties window and enter the necessary modifications.

 

 

Fill in the following options:

 

Source Values

Date 1

Enter the value for the initial date/time or click and select a variable with that value. See Variable Definition.

Format Date 1

Select the "Date 1" format from the drop-down list or enter it with the use of a syntax list that is accessed by clicking . This format needs to match the format of the date/time value from "Date 1". Ex: For a "Date 1" time presented like this: 09:50:25, use the following format: %H:%M:%S.

Date 2

Enter the value for the second date/time or click and select a variable with that value.

Format Date 2

Select the "Date 2" format from the drop-down list or enter it with the use of a syntax list that is accessed by clicking . This format needs to match the format of the date/time value from "Date 2". Ex: For a "Date 2" time presented like this: 09:50:25, use the following format: %H:%M:%S.

Result

Output Format

Define the output format for the result by selecting it from the drop down list.

Result Variable

Click and define the variable that will receive the result value. See To Select/Create a Variable.

 

If required, use the icon on the upper right corner of the properties window:

 

Use the icon to attach any relevant notes to this process. Click it and enter your notes in the resulting text box. These notes will be displayed in the corresponding "Actions" tab or "Process" window (in the "Notes" field) and in the "Developer Report".

 

After filling in the required options, click to conclude or to abort the operation.

 

 

The added process is displayed in the corresponding "Actions" tab or "Process" window.

 

 

Use the right click in MCL-Designer's input boxes to access certain features regarding the input box's option as well as general actions such as "Copy"; "Paste"; "Search".

Ex: If you right-click the "Variable" input box (included in a "Conversion's" properties window), you are provided with the "Search..."and "Variable Select" options.

If you right-click another input box, it will provide other possibilities.