DTM Date/Time Reference

To specify pertinent dates and times

Position
Element
Name
Type
Requirement
Min
Max
Repeat
DTM01
Date/Time Qualifier
Identifier (ID)
Mandatory
3
3
-
Code specifying type of date or time, or both date and time
DTM02
Date
Date (DT)
Conditional
8
8
-
Date expressed as CCYYMMDD
R020305: At least one of DTM-02, DTM-03 or DTM-05 is required
DTM03
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)
DTM04
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
C0403: If DTM-04 is present, then DTM-03 is required
DTM05
Date Time Period Format Qualifier
Identifier (ID)
Conditional
2
3
-
Code indicating the date format, time format, or date and time format
P0506: If either DTM-05 or DTM-06 is present, then the other is required
DTM06
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.