# Claim edit: Invalid date range

> Stedi now rejects 837P professional, 837D dental, and 837I institutional claims where the start of a date range is later than the end date.

Published Jun 5, 2026

Product: Claim edits

Stedi now rejects [837P professional](https://www.stedi.com/docs/healthcare/submit-professional-claims), [837D dental](https://www.stedi.com/docs/healthcare/submit-dental-claims), and [837I institutional](https://www.stedi.com/docs/healthcare/submit-institutional-claims) claims where the start of a date range is later than the end date.

## Date formats

[X12 standards](https://www.stedi.com/docs/healthcare/intro-to-claim-submission#x12-hipaa-format) require that every date on a claim, such as the service date or admission date, use one of two formats:

- **Single date** – Eight digits in `CCYYMMDD` format. Example: `20260515`.

- **Date range** – Two dates in `CCYYMMDD-CCYYMMDD` format. Example: `20260515-20260516`.

In raw X12, each date has a related qualifier indicating the format: `D8` for single dates and `RD8` for date ranges.

### Date ranges in the JSON API

In Stedi's [JSON Claim Submission API endpoints](https://www.stedi.com/docs/healthcare/intro-to-claim-submission#api-claim-submission), most dates that support ranges use paired fields. For example, in the [JSON Professional Claim Submission endpoint](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims), you can provide a date of service either as:

- A single date using the [serviceDate](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.serviceLines.serviceDate) field

- A range using the [serviceDate](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.serviceLines.serviceDate) and [serviceDateEnd](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-claims#body.claimInformation.serviceLines.serviceDateEnd) fields.

Some dates accept a range in a single field. For example, in the [JSON Dental Claim Submission endpoint](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-dental-claims), the claim-level [`serviceDate`](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-dental-claims#body.claimInformation.claimDateInformation.serviceDate) field accepts either a single date or a date range.

## How the edit works

For date ranges in a claim, the start date should never fall after the end date. If it does, the payer may reject the claim.

This [edit](https://www.stedi.com/docs/healthcare/claim-edits-and-repairs#edits) catches the issue before the claim reaches the payer. It prevents payer rejections, which take longer to resolve and delay payment for the provider.

## Rejection errors

If you submit a claim using Stedi's [Claim Submission API endpoints](https://www.stedi.com/docs/healthcare/intro-to-claim-submission#api-claim-submission) and the claim fails the edit, you'll get back an error response in real time. The response includes details in the `errors` array.

```jsonc
{
  "errors": [
    {
      "code": "33",
      "description": "Invalid Service date range. The start date (20250708) cannot be later than the end date (20250608). Correct and resubmit.",
      "followupAction": "Please Correct and Resubmit"
    }
  ]
}
```

If you submit a claim using [SFTP](https://www.stedi.com/docs/healthcare/submit-claims-sftp-connection) and the claim fails the edit, Stedi will reject the claim with a [277CA claim acknowledgment](https://www.stedi.com/docs/healthcare/claim-responses-overview#277ca-claim-acknowledgment). The acknowledgment will include a related [claim status category code](https://x12.org/codes/claim-status-category-codes), [claim status code](https://x12.org/codes/claim-status-codes), and error message.

```jsx
STC*A7>187*[DATE]*U*[AMOUNT]********Invalid Service date range. The start date (20250708) cannot be later than the end date (20250608). Correct and resubmit.~
```
