# Селекторы даты и времени

```html
<input type="text" data-datepicker>
<input type="text" value="10.11.2014 16:51:20" data-datetimepicker>
```

{% embed url="<https://codepen.io/pipui/pen/mdjRwWP>" %}
Пример работы кода выше
{% endembed %}

Инициализация селекторов происходит в поле ввода одним из двух атрибутов:\ <mark style="color:orange;">`data-datepicker`</mark> или <mark style="color:orange;">`data-datetimepicker`</mark>

Атрибут <mark style="color:orange;">`data-datepicker-autoclose="true"`</mark> используется для автоматического закрытия после выбора даты


---

# 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://v1-6-0.pipui.ru/components/date-time-picker.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.
