---
title: "Set date range"
description: "Set date range of your fields"
url: "https://www.contentstack.com/docs/headless-cms/set-date-range"
product: "Contentstack"
doc_type: "guide"
audience:
  - developers
  - admins
version: "current"
last_updated: "2026-07-22"
---

# Set date range

The **Set date range** property lets you define a range of date for the user.

While setting up a [content type](/docs/headless-cms/about-content-types), if you add the [**Date**](/docs/headless-cms/date) field and select this property, it will show the following options along with\\ the mandatory and hide-time options:

*   **Start date**: Let's you specify the start date for the date range.
*   **End date**: Let's you specify the end date for the date range.

When you set this range, the user will only be able to enter the date within the specified range on the [entry](/docs/headless-cms/about-entries) page.

**Additional Resources**: To add this property to the Date field when [creating your content type via an API request](/docs/developers/apis/content-management-api/content-types#create-a-content-type), refer to the [JSON payload of the Date](/docs/headless-cms/json-schema-for-creating-a-content-type#date) field.  
  
Making changes in existing field properties may result in data loss. To prevent this, make sure you go through our [Content Type Change Management](/docs/headless-cms/content-type-change-management) guide before you go ahead.