Skip to content

message.getCreatedTimestamp

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

Signature: message.getCreatedTimestamp()

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

Get the created timestamp for the 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

// Example: Retrieve the created (or received) timestamp for the message.

// Get the created timestamp
var createdTimestamp = message.getCreatedTimestamp(); // "yyyyMMddHHmmss.SSS"