DTM: which date is which?

· A message can hold five different DTMs. The qualifier says which one is delivery and which is the document date.

There is no single "date" in an EDI message. Order date, requested delivery date, actual delivery date, payment due date — each travels in its own DTM segment, and they all look alike.

What separates them is the qualifier in the first element.

The qualifiers you meet most

CodeMeaning
137Document / message date
2Requested delivery date
35Actual delivery date
11Despatch date
13Payment due date
132Estimated arrival
356Period start
357Period end

DTM+137:20260117:102' is the document date; DTM+2:20260125:102' is the delivery date. An integration that reads them interchangeably schedules the order on the wrong day.

The third part: the format

The third element says how to read the value:

CodeFormatExample
102YYYYMMDD20260117
203YYYYMMDDHHMM202601171030
718A date range (two dates joined)2026010120260630
610YYYYMM (month)202601
616YYYYWW (week)202603

Parsing the value without reading the format code is a common mistake. Treating 202601171030 as 102 and taking the first eight digits gives you the right day while silently dropping the time.

The week format

616 turns up especially in automotive: the delivery week is stated, not the day. 202603 means week three of 2026. Trying to parse that as a date produces nonsense.

A practical check

If you cannot find the date you expect in a file, line up every DTM in the message and read their qualifiers. The date is usually there — under a different code.

Related reference

DTM

← All posts