---
title: "Date Field"
description: "A date people can type in their own order or pick from a calendar, with limits, and helpers that send the calendar day to your server without timezone shifts."
plan: Pro
docs: https://ui.edbn.me/docs/forms/form-date-field
example: basic
---

# Date Field

A date people can type in their own order or pick from a calendar, with limits, and helpers that send the calendar day to your server without timezone shifts.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/form-date-field
```

## Dependencies
- npm: react-hook-form@^7.87.0, date-fns@^4.4.0, lucide-react@^1.33.0
- edbn: form-core, calendar, popover, input-group

## Usage: Event date

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Examples
- [Event date](https://ui.edbn.me/docs/forms/form-date-field/basic) (Markdown: https://ui.edbn.me/docs/forms/form-date-field.md?demo=basic)
- [Birthday](https://ui.edbn.me/docs/forms/form-date-field/birthday) (Markdown: https://ui.edbn.me/docs/forms/form-date-field.md?demo=birthday)

## Files
- components/forms/fields/date-field.tsx (261 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
