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
1
Code specifying type of date or time, or both date and time
DTM-02
Date
Date (DT)
Conditional
8
8
1
Date expressed as CCYYMMDD where CC represents the first two digits of the calendar year
R020305: At least one of DTM-02, DTM-03 or DTM-05 is required
DTM-03
Time
Time (TM)
Conditional
4
8
1
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
1
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
DTM-05
Date Time Period Format Qualifier
Identifier (ID)
Conditional
2
3
1
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
DTM-06
Date Time Period
String (AN)
Conditional
1
35
1
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.