# DateTimePicker

This component is used to select a datetime.

## Installation

```tsx
import { DateTimePicker } from 'uxp/components';
```

## Signature

```tsx
const DateTimePicker: React.FunctionComponent<IDateTimePickerProps>
```

## Examples

```tsx
<DateTimePicker
     datetime={date}
     onChange={(date) => { setDate(date); }}
 />
```

## Properties

| Name              | Type                                                                                              | Mandatory | Default Value | Example Value |
| ----------------- | ------------------------------------------------------------------------------------------------- | --------- | ------------- | ------------- |
| title             | string                                                                                            | Yes       | -             | -             |
| datetime          | string \| Date                                                                                    | Yes       | -             | -             |
| onChange          | (date: Date) => void                                                                              | Yes       | -             | -             |
| disableInput      | boolean                                                                                           | No        | -             | -             |
| options           | [IDatePickerOptions](https://help.iviva.com/uxp/v5/additional-resources/types/idatepickeroptions) | No        | -             | -             |
| hideLabels        | boolean                                                                                           | No        | -             | -             |
| hideDateInput     | boolean                                                                                           | No        | -             | -             |
| showFullMonthName | boolean                                                                                           | No        | -             | -             |
| spacingMode       | [SpacingMode](https://help.iviva.com/uxp/v5/additional-resources/types/spacingmode)               | No        | -             | -             |

## Related Types

* [IDateTimePickerProps](https://help.iviva.com/uxp/v5/additional-resources/types/idatetimepickerprops)
* [IDatePickerOptions](https://help.iviva.com/uxp/v5/additional-resources/types/idatepickeroptions)
* [ISpecialDate](https://help.iviva.com/uxp/v5/additional-resources/types/ispecialdate)
* [SpacingMode](https://help.iviva.com/uxp/v5/additional-resources/types/spacingmode)
