objectId-datetime
Extracts an ObjectId's creation date (as an xs:dateTime in UTC), converted from the stored 4-byte timestamp.

Languages
Built-in
Parameters
Name | Type | Description |
|---|---|---|
objectId | bson:objectId | The BSON objectId value from which the date and time in UTC are extracted. |
Example
For an ObjectId value of 5E361F8A640000000000012D, the objectId-datetime function returns 2020-02-02T01:02:02Z. This is the UTC datetime converted from the first 4 bytes (5E361F8A).
Although the BSON ObjectId is internally stored as a 12-byte value, MapForce automatically converts it to a 24-character hexadecimal string for readability.