> ## 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.

# <DateTimeInput />

> A date and time input field for selecting both date and time.

<img className="dark:hidden" width="720" height="440" noZoom src="https://mintcdn.com/attio/lDsJMHM3aZOlF-XN/images/date-time-input.png?fit=max&auto=format&n=lDsJMHM3aZOlF-XN&q=85&s=110e09b90d4f7aad18fb13c2c300d7eb" data-path="images/date-time-input.png" />

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

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

If you wish to only get a date, with no time, use [`<PlainDateInput />`](./plain-date-input).

## Example

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

export function MeetingForm() {
  const {Form, SubmitButton, DateTimeInput} = useForm(
    {
      meetingTime: Forms.dateTime(),
    },
    {},
  )
  return (
    <Form
      onSubmit={async (values) => {
        await showToast({
          title: "Form submitted",
          variant: "success",
          text: `Meeting scheduled for ${values.meetingTime?.toLocaleString()}`,
        })
      }}
    >
      <DateTimeInput label="Meeting Time" name="meetingTime" />
      <SubmitButton label="Submit" />
    </Form>
  )
}
```

## Props

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

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

  e.g. `"meeting_time"`, `"user.last_login"`
</ParamField>

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

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