# Date picker

## Overview

The Date picker component allows you to select a date from the calendar. The field supports multiple date formats, required field, and minimum/maximum values.

<figure><img src="https://837703843-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FUX6zPRMFFK0yrTghj7cY%2Fuploads%2FW2s5jQDG96Qau7Iw5183%2FCleanShot%202025-07-25%20at%2014.23.43%402x-min.png?alt=media&#x26;token=5433175e-3dbd-4c26-ae17-7ef42e4e73e6" alt=""><figcaption></figcaption></figure>

The component also allows you to set the time zone for date values:point\_down:

{% content-ref url="../../concepts/components/work-with-components/manage-date-object-time-zones" %}
[manage-date-object-time-zones](https://docs.uibakery.io/concepts/components/work-with-components/manage-date-object-time-zones)
{% endcontent-ref %}

### Properties

<table><thead><tr><th width="156.9453125">Name</th><th width="137.65234375">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>name</code></td><td><code>string</code></td><td>Component name</td></tr><tr><td><code>value</code></td><td><code>Date</code></td><td>Current component value</td></tr><tr><td><code>valid</code></td><td><code>boolean</code></td><td>Indicates if the component is valid</td></tr><tr><td><code>validating</code></td><td><code>boolean</code></td><td>Indicates if the component is validating</td></tr><tr><td><code>disabled</code></td><td><code>boolean</code></td><td>Indicates whether the component is disabled</td></tr></tbody></table>

### Methods

<table><thead><tr><th width="162.4453125">Name</th><th width="174.08203125">Parameters</th><th width="101.01171875">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setValue</code></td><td><p><code>value: Date |</code> </p><p><code>number | string</code></p></td><td><code>void</code></td><td>Set component value</td></tr><tr><td><code>setDisabled</code></td><td><code>disabled: boolean</code></td><td><code>void</code></td><td>Disable or enable the component</td></tr><tr><td><code>reset</code></td><td>–</td><td><code>void</code></td><td>Reset component to the initial value</td></tr><tr><td><code>focus</code></td><td>–</td><td><code>void</code></td><td>Set focus on the component</td></tr><tr><td><code>validate</code></td><td>–</td><td><code>void</code></td><td>Trigger form validation</td></tr><tr><td><code>resetValidation</code></td><td>–</td><td><code>void</code></td><td>Clear validation errors</td></tr><tr><td><code>setErrors</code></td><td><code>errors: string | string[] | null</code></td><td><code>void</code></td><td>Mark the component as invalid and display errors</td></tr><tr><td><code>setRequired</code></td><td><code>required: boolean</code></td><td><code>void</code></td><td>Set component required state</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="151.87890625">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Change</strong></td><td>Triggered when the component's state changes</td></tr><tr><td><strong>On Enter</strong></td><td>Triggered when the Enter key is pressed</td></tr><tr><td><strong>On Focus</strong></td><td>Triggered when the component is in focus</td></tr><tr><td><strong>On Blur</strong></td><td>Triggered when the component loses focus</td></tr><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr></tbody></table>
