Parse Date/Time

Logic Name

Parse Date/Time

Function

Parses the input string in a specified format and outputs the value as date/time.

Data Types

Location Type
The first input handler String
Logic output Date
lightbulbRefer to "Logic Specifications" for details.

Properties

Category Property Description
Required Format Specify the date format of the custom type.
Comment Comment The comment will also be output to the specifications.It does not affect the conversion process.

Function Details

Format

Format is used in order to interpret string as date/time.
Specify the format that fits the input string.
Refer to "Format" of Time Formatting for details of format.
The following exception is output when the string can not be interpreted as date/time using the specified format.
[Mapping] process failed. Caused by:[java.lang.IllegalStateException: failed to set value to variable "date" ("20061001" cannot be parsed in "yyyy/MM/dd" format)]

Logic Sample

Mapping Definition

Logic Settings and Processing Result

The logic parses string value with format "yyyy/MM/dd" and outputs date/time value.
Property Settings
Property Setting
Format yyyy/MM/dd
Input Data
1999/08/10
2001/09/01
2004/10/17
Result Data
1999-08-10T00:00:00.000+0900
2001-09-01T00:00:00.000+0900
2004-10-17T00:00:00.000+0900