> ## Documentation Index
> Fetch the complete documentation index at: https://docsv4.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Date

> Capture a calendar date, and limit which dates can be picked.

**Date** captures a calendar date without a time, in the `dd/mm/yyyy` format.

**Use cases**

* **Delivery date**: when the customer expects the order.
* **Expiry date**: the expiry printed on a product.
* **Inspection date**: when an asset was last checked.

## Properties

<div align="center">
  <img src="https://mintcdn.com/mileappv4/Zv-R0yz4NrNyQHzp/images/v4/workflow/components/input-date.png?fit=max&auto=format&n=Zv-R0yz4NrNyQHzp&q=85&s=61742e770f96276215d57c0e1e0cd279" alt="Date properties" width="600" data-path="images/v4/workflow/components/input-date.png" />
</div>

1. **Validation Type**: which dates can be picked:
   * **No validation**: any date.
   * **Next 7 days**, **Next 30 days**, **Next 90 days**: from today up to that many days ahead.
   * **Custom date range**: between a **Min Date** and a **Max Date** you set. Both are required, and the latest date must be after the earliest.
2. **Default Value**: a date filled in for every new task. It must fall inside the Validation Type's range.
3. **Visible**: when off, the field is hidden on the web and the field app; its value is still kept and exported.
4. **Required**: the task cannot be saved or finished until a date is picked.
5. **Show As**: show the date in the task list as the task's **Title**, **Content** or **Label**.

## How to set it up

<Steps>
  <Step title="Add the component">
    Click **Add component**, choose **Input**, and set **Type of Input** to **Date**.
  </Step>

  <Step title="Limit the dates (optional)">
    Pick a **Validation Type**. For **Custom date range**, set the **Min Date** and **Max Date**.
  </Step>

  <Step title="Set the basics">
    Write the **Title**, set **Required** and **Visible**, and add a **Default Value** if you need one.
  </Step>
</Steps>

## On the field app

The field opens a date picker in `dd/mm/yyyy`. Dates outside the Validation Type's range cannot be picked. The field can already be filled from task creation or from the Default Value, and the worker can change it before finishing the page.

## Related

* [Date and time](/pages/workflow/task-type/components/input/date-time)
* [Time](/pages/workflow/task-type/components/input/time)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.