# Date & Time

## Overview

The Date & Time component allows you to display a date and time object in a specified format.&#x20;

<figure><img src="/files/t9r4bWaw7QNGFBp9VaPm" alt=""><figcaption></figcaption></figure>

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

{% content-ref url="/pages/xXvLQhuCbpH5iVSnqo1K" %}
[Managing Date object time zones](/concepts/components/work-with-components/manage-date-object-time-zones.md)
{% endcontent-ref %}

### Properties

| Name   | Type     | Description    |
| ------ | -------- | -------------- |
| `name` | `string` | Component name |

### Methods

<table><thead><tr><th width="105.3359375">Name</th><th>Parameters</th><th width="111.17578125">Returns</th><th>Description</th></tr></thead><tbody><tr><td><code>setValue</code></td><td><p><code>value: Date | number |</code> </p><p><code>string</code></p></td><td><code>void</code></td><td>Set component value</td></tr></tbody></table>

### Triggers

<table><thead><tr><th width="149.4140625">Name</th><th>Description</th></tr></thead><tbody><tr><td><strong>On Init</strong></td><td>Triggered when the component is initialized</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.uibakery.io/reference/working-with-components/date-and-time.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
