Date/Time Exists

Logic name
Date/Time Exists (Document Mapper/Variable Mapper)
Function
This logic determines whether the input date/time exists.
Data types
Location |
Type |
---|---|
First input handler |
String |
Logic output |
Boolean |
For details, refer to Logic specifications (Document Mapper/Variable Mapper).
Properties
Category |
Property |
Description |
---|---|---|
Required settings |
Format |
Specify the input format. |
Null processing |
Null option |
Specify how to handle the input if it contains null. |
Comment |
Comment |
You can write a description of the logic. It doesn't affect the conversion process. |
Null option
Option |
Description |
---|---|
Return false when unable to determine/calculate/process |
Continues with the process without throwing exception even when a system is unable to determine/calculate/process. |
Throw exception when unable to determine/calculate/process |
Throws an exception (CalculationException) and stops the processing when the system is unable to determine/calculate/process. |
Output null if the input is null |
Outputs null if the value of the input handler is null. |
For details, refer to Logic specifications (Document Mapper/Variable Mapper).
Notes
-
Criteria
The criteria for whether the date/time exists are based on the result of analysis with the format.
The validity of the format can't be checked with this logic.
Therefore, even when the format of the input data isn't in accordance the intended format, the result may be determined as "true."
An example is shown below. The format is "yyyyMMdd".
Input date/time
Determination result
Description
20080101
true
It is interpreted as January 1, 2008.
a20080101
false
20080101a
true
It is interpreted as January 1, 2008.
2008101
true
It is interpreted as October 1, 2008.
Logic sample
Mapping definition

Logic settings and processing result
This logic interprets the input data in the "yyyy-MM-dd" format. If the date exists, it returns "true". If not, it returns "false".
Property settings
Property |
Setting |
---|---|
Format |
yyyy-MM-dd |
Null option |
Return false when unable to determine/calculate/process |
Input data
1999-09-31 |
2004-10-17 |
2009-13-10 |
Output data
false |
true |
false |
For a list of logics, refer to Mapper Logic Guide.