Sending DateTime Data to an Adapter Configuration
When TIBCO ActiveMatrix Adapter for Database (TIBCO Business Studio) publishes messages including datetime data, the wire format is handled implicitly since both Publication Service and Subscription Service use the same format.
Messages containing datetime data sent to the adapter must have that data in a string format. Formatting dates as strings allows the adapter to handle date values outside the range allowed by RVMSG_DATETIME, January 1, 1970 to January 1, 2034.
The default format used by the adbDateTime metadata class is described in this section. The adapter TRA properties also include a few date and time patterns that you can specify to use.
adbDateTime Object
To view the structure of the adbDateTime object, go to the Project Explorer view, and expand .
The adapter returns an error when the input data contains timezone information. You can use the TIBCO BusinessWorks XPath function to parse the timezone information before the information is passed to the adapter.
Specifying Date and Time Patterns
- adb.datePattern: This is the date format pattern for java.text.SimpleDateFormat. The default format is yyyy-MM-dd.
- adb.timePattern: This is the time format pattern for java.text.SimpleDateFormat. The default format is HH:mm:ss.
- adb.timestampPattern: The standard timestamp format pattern for java.text.SimpleDateFormat. The default format is yyyy-MM-dd HH:mm:ss.S.