DTM Date/Time Reference

To specify pertinent dates and times

Position
Element
Name
Type
Requirement
Min
Max
Repeat
DTM-01
Date/Time Qualifier
Identifier (ID)
Mandatory
3
3
-
Code specifying type of date or time, or both date and time.
DTM-02
Date
Date (DT)
Conditional
6
6
-
Date (YYMMDD).
R020306: At least one of DTM-02, DTM-03 or DTM-06 is required
DTM-03
Time
Time (TM)
Conditional
4
8
-
Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)
DTM-04
Time Code
Identifier (ID)
Optional
2
2
-
Code identifying the time. In accordance with International Standards Organization standard 8601, time can be specified by a + or - and an indication in hours in relation to Universal Time Coordinate (UTC) time. Since + is a restricted character, + and - are substituted by P and M in the codes that follow.
DTM-05
Century
Numeric (N0)
Optional
2
2
-
The first two characters in the designation of the year (CCYY).
DTM-06
Date Time Period Format Qualifier
Identifier (ID)
Conditional
2
3
-
Code indicating the date format, time format, or date and time format.
P0607: If either DTM-06 or DTM-07 is present, then the other is required
DTM-07
Date Time Period
String (AN)
Conditional
1
35
-
Expression of a date, a time, or range of dates, times or dates and times.

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference is provided for marketing purposes and is free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.