DTP02 in X12 837P: A Field Guide to Date Time Period Format Qualifier
DTP02 is a two-character code most people skim right past, but it's the difference between a parser expecting eight digits and one expecting seventeen with a dash in the middle. Get it wrong in test data and DTP03 parses cleanly for the wrong reason.
DTP02 is the Date Time Period Format Qualifier in an X12 837P claim — it tells the receiving system whether the value in DTP03 is a single calendar date or a date range, and therefore what format to expect that value in.
Format values and what they mean
Example
DTP02 value D8 tells the parser to expect a single eight-digit date in DTP03 — here, a discharge date of 2026-06-15. Synthetic claim data.
Where this trips people up
Some hand-built test fixtures set DTP02 to D8 out of habit and then paste a date range into DTP03 anyway, because the string looks superficially fine to a human reading the file. A parser that trusts DTP02 and slices the first eight characters off DTP03 will silently drop the second half of the range instead of raising an error, and the resulting claim looks complete right up until someone asks why the statement period only has a start date.