Skip to content

source.getCreatedTimestamp

Use when: You want to read values from the original incoming message before any mapping changes. If you need the modified message during mapping, use message.getCreatedTimestamp.

Signature: source.getCreatedTimestamp()

Returns: String timestamp - the created (or received) timestamp for the source message in 'yyyyMMddHHmmss.SSS' format

Get the created timestamp for the source message in yyyyMMddHHmmss.SSS format.

Note

This method only applies to the following formatted messages: HL7, ASTM, Binary, CSV, DICOM, EDIFACT, Old Fxd Width, Fxd Length, ISO 8583, JSON, Text, X12, XML.

Parameters

None

Example

// Retrieve the created (received) timestamp for the source message.
var createdTimestamp = source.getCreatedTimestamp(); // expected format: "yyyyMMddHHmmss.SSS"