Skip to main content
Feedback

Date/Time data type

Formatting dates and times is required in almost every integration.

Date and time formats available for selection

note

Database profiles are unique because you do not need to specify a format for date and numeric values. The database determines the formats; Integration simply communicates with native date or number objects.

The following table describes the syntax of a time pattern string. In this pattern, all ASCII letters are reserved as pattern letters.

SymbolMeaningPresentationExample
GEra designatorTextAD or BC
yYearNumber1996
MMonth in yearText & NumberJuly & 07
dDay in monthNumber10
hHour in am/pm (1~12)Number12
HHour in day (0~23)Number0
mMinute in hourNumber30
sSecond in minuteNumber55
SMillisecondNumber978
EDay in weekTextMonday
DDay in yearNumber189
FDay of week in monthNumber2 (2nd Wed in July)
wWeek in yearNumber27
WWeek in monthNumber2
aAM/PM markerTextPM
kHour in day (1~24)Number24
KHour in AM/PM (0~11)Number0
zTime zoneTextPST, EST, etc.
ZTime zone offset-0500
XTime zone offset (common web services format)-05:00
'Z'Convert value to UTC time<date time value>Z
'Escape for textDelimiter
''Single quoteLiteral'

These are time pattern strings examples:

Format Pattern
Output

yyyy-MM-dd'T'HH:mm:ssZ
: 2007-10-29T14:30:22-0500

yyyy-MM-dd'T'HH:mm:ss.S
: 2007-10-29T14:30:22.586

yyyy.MM.dd G 'at' HH:mm:ss z
: 1996.07.10 AD at 15:08:56 PDT

EEE, MMM d, ''yy
: Wed, July 10, '96

h:mm a
: 12:08 PM

hh 'o''clock' a, zzzz
: 12 o'clock PM, Pacific Daylight Time

K:mm a, z
: 0:00 PM, PST

yyyyy.MMMMM.dd GGG hh:mm aaa
: 01996.July.10 AD 12:08 PM
note

If you require mapping to convert date and time data types, it is important to understand that when the mapping engine parses a value configured as date and time, it converts it to a special internal date format that looks like this: yyyyMMdd HHmmss.SSS. For more information, refer to the Time Zone Offsets topic linked below.

note

Invalid date and time data element values in documents using EDI profiles cause a process run error. Invalid date and time data element values in documents using other profile types transform without error using Java default “lenient” date and time parsing. For example, a date value of 20211417 in the format yyyyddMM is transformed to 20221405 — the month value of 05 is calculated by subtracting the number of months in a year (12) from the month value in the input document (17), and calculates the year value of 2022 by adding one to the year value in the input document (2021).

You can optionally apply lenient parsing to documents using EDI profiles by setting the Runtime property com.boomi.container.useLenientEDIDateParsing to true in the Properties panel’s Custom tab in Runtime Management (Manage > Runtime Management).