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

# <PlainDateInput />

> A date input field for selecting ISO 8601 dates (YYYY-MM-DD).

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/_ybVRO-J1QkLIThy/images/plain-date-input.png?fit=max&auto=format&n=_ybVRO-J1QkLIThy&q=85&s=6ea58393a46ced4ca7db3cf488cae26c" data-path="images/plain-date-input.png" />

<img className="hidden dark:block" width="720" height="440" noZoom src="https://mintcdn.com/attio/_ybVRO-J1QkLIThy/images/plain-date-input-dark.png?fit=max&auto=format&n=_ybVRO-J1QkLIThy&q=85&s=d97f20cd8119c8376cfd5c296a75922d" data-path="images/plain-date-input-dark.png" />

<Note>This component is returned by [`useForm()`](../../forms/use-form).</Note>

If you wish to also get a time with your date, use [`<DateTimeInput />`](./date-time-input).

## Example

```tsx event-form.tsx theme={"system"}
import React from "react"
import {Forms, useForm, showToast} from "attio/client"

export function EventForm() {
  const {Form, SubmitButton, PlainDateInput} = useForm(
    {
      eventDate: Forms.plainDate(),
    },
    {},
  )
  return (
    <Form
      onSubmit={async (values) => {
        await showToast({
          title: "Form submitted",
          variant: "success",
          text: `Event scheduled for ${values.eventDate}`,
        })
      }}
    >
      <PlainDateInput label="Event Date" name="eventDate" />
      <SubmitButton label="Submit" />
    </Form>
  )
}
```

## Props

<ParamField path="label" type="string" required>
  The label of the plain date input field.
</ParamField>

<ParamField path="name" type="string" required>
  The path to the `plainDate` value of the input field in your [form schema](../../forms/form-schema).

  The value will be in ISO 8601 format (YYYY-MM-DD).

  e.g. `"event_date"`, `"user.birth_date"`
</ParamField>

<ParamField path="disabled" type="boolean">
  Whether or not the field should be disabled.

  Defaults to `false` (not disabled).
</ParamField>
