> For the complete documentation index, see [llms.txt](https://docs.eximee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/1-wprowadzanie-danych-inputs/data-datepicker.md).

# Date - DatePicker

Date picker component

![](/files/534dd032a95be0befdd3eb60dee962d75cd6aaca)

## Component properties

| Eximee Designer property                                                                                | Attribute name in the Source | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Mask presentation</strong><br>(section <strong>Styling</strong>)</p>                         | autoMask                     | Displaying the mask in the date field (default value "true").                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p><strong>Date format</strong><br>(section <strong>Basic properties</strong>)<br></p>                  | dateFormat                   | <p>Date format. By default set to dd-MM-yyyy. Values from which the date format can be composed:</p><ul><li>yy - last two digits of the year</li><li>yyyy - year</li><li>MMMM - full month name</li><li>MMM - three-letter abbreviated month name (Jan, Feb, Mar, etc.)</li><li>MM - two-digit month number (months from 1 to 9 are preceded by a zero)</li><li>M - month number</li><li>d - day of the month number</li><li>dd - two-digit day of the month number (days from 1 to 9 are preceded by a zero)</li><li>EEEE - full day of the week name</li><li>EEE or EE - abbreviated day of the week name (Mon, Tue, etc.)</li><li>separators, e.g. space, dot, hyphen, etc.</li></ul><p>The default date format for the component follows locale settings.</p><p>Note! Changing the date format affects how it is displayed in <strong>the default value</strong> (defaultValue). Any change to the format requires updating the default date.</p> |
| <p><strong>Date range</strong><br>(section <strong>Data quality</strong>)<br></p>                       | dateRange                    | <p>Restricting the range of selectable dates. Available options:</p><ul><li><strong>ALL</strong> (all dates)</li><li><strong>PAST</strong> (past dates including today)</li><li><strong>PAST\_WITHOUT\_TODAY</strong> (past dates without today)</li><li><strong>FUTURE</strong> (future dates including today)</li><li><strong>FUTURE\_WITHOUT\_TODAY</strong> (future dates without today)</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>Field description</strong><br>(section <strong>Data quality</strong>)<br></p>                | description                  | Text displayed as a description of the field below it, by default this is an empty value. The availability of this functionality depends on the license and may not be available in all deployments.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| <p><strong>Date change message</strong><br>(section <strong>Other</strong>)<br></p>                     | dateRangeValidationText      | Text displayed after changing the date when an invalid value has been entered. The default value is "*The date has been changed.*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><strong>Date set to today</strong><br>(section <strong>Other</strong>)<br></p>                       | defaultValueOnToday          | Displays the system date as the default value in the field (default value "false").                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>Drop-down list for selecting month/year</strong><br>(section <strong>Other</strong>)<br></p> | useDropDownSelector          | <p>Enabled drop-down list for selecting month/year (default value "false").<br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>With time</strong><br>(section <strong>Other</strong>)<br></p>                               | withTime                     | Set to "true" means that after the date there will be a time in the format: 00:00                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| **Unavailable dates**                                                                                   | disabledDates                | A comma-separated list of days (as timestamps) whose selection should be blocked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

> More information about component properties: [Common component properties](/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/praca-z-komponentami-bazowymi/wspolne-wlasciwosci-komponentow.md)

## External data source

The control can be populated using a script, for which we can use an external data source. The external data source can be configured in the Interactions section, and the parameters we can set are:

* service - the service that will provide data to display the control
* input parameters - a list of service parameters that can be populated with variables or values from the application
* output parameters - a list of output service parameters that we can map to component attributes; the list of available attributes is:
  * value - the initial value of the control represented by a timestamp. Example: 1739577600000
  * disabledDates - a list of dates the user will not be able to select. The value is a list of timestamps separated by commas. Example: 1739145600000,1739577600000
  * dateRange - the range of possible dates to select. The range is written as two timestamps separated by a comma. Example: 1738800000000,1740009600000
  * disabledInputTyping - will it be possible to enter the date? Possible values: true, false.

## Example component settings

Set **Date format** (dateFormat) determines which date component appearance will be shown in the application, for example:

| Setting in Eximee Designer                                                    | Appearance in the application                                                           |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- |
| <p><br><img src="/files/ce3c9d57fd53f6239b86e06400111e4261edb1f3" alt=""></p> | <img src="/files/a996b0a2e94a8b602f63d935a5f69f5a78a72689" alt="" data-size="original"> |
| ![](/files/99b175f981bb16873d9656005236a9fd32586fad)                          | ![](/files/1b07cf8b51df987ae336d8441ace1e6e442d6881)                                    |

<figure><img src="/files/9d9793140ee91781efbcfc25bba4940d5ed0abbf" alt="" width="491"><figcaption><p align="center"><em><strong>Figure 1.</strong> Other configuration examples of the component's appearance in the application</em></p></figcaption></figure>

<div><figure><img src="/files/a941d90645bbee64410350595cd5a78362eb4e14" alt=""><figcaption></figcaption></figure> <figure><img src="/files/db3f6c6f28364beb1946f388ead9478221e95870" alt=""><figcaption><p align="center"><em><strong>Illustrations 2 and 3.</strong> Example appearance of calendar popups</em></p></figcaption></figure></div>

{% hint style="info" %}
Demo application: demoDatePicker
{% endhint %}

## Additional component properties <a href="#datawlasciwoscidodatkowe-dodatkowewlasciwoscikomponentu" id="datawlasciwoscidodatkowe-dodatkowewlasciwoscikomponentu"></a>

| Eximee Designer property                                                                                           | Attribute name in the Source | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| ------------------------------------------------------------------------------------------------------------------ | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Year display in the calendar header</strong><br>(section <strong>Other</strong>)<br></p>                | showYearInHeadline           | In the calendar, the year is displayed next to the month (default value "true").                                                                                                                                                                                                                                                                                                                                                                                                                            |
| <p><strong>Selection from the calendar only</strong><br>(section <strong>Other</strong>)<br></p>                   | disabledInputTyping          | Set to "true" means that date selection will be possible only from the popup. It will not be possible to type the date manually into the field. Only for the DESKTOP channel.                                                                                                                                                                                                                                                                                                                               |
| <p><strong>Placeholder</strong><br>(section <strong>Data quality</strong>)<br></p>                                 | placeholderText              | Text displayed as **Placeholder** field; by default it is an empty value.                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>Initial view</strong><br>(section <strong>Other</strong>)<br></p>                                       | startViewMode                | The choice of the "screen" that appears first after clicking the calendar. Possible values: DEFAULT - same behavior as before, MULTI\_YEAR - show the year selection screen as the first screen.                                                                                                                                                                                                                                                                                                            |
| <p><strong>Date format for the field without focus</strong><br>(section <strong>Basic properties</strong>)<br></p> | unfocusedFormat              | <p>Custom date format for the field that does not have focus.</p><p>Allowed formats are the same as in the field with <strong>Date format</strong>. If the field is empty, <strong>Date format for the field without focus</strong> it is the same as in the field with <strong>Date format</strong>. If the field is filled with a format other than <strong>Date format</strong>, then this value will be visible after leaving the field, and <strong>Date format</strong> after clicking the field.</p> |

{% hint style="info" %}
♿WCAG: [Good WCAG practices for low-code dev](/documentation/documentation-en/budowanie-aplikacji/proces-biznesowy/tworzenie-procesu-biznesowego-w-bpmn-2.0/dobre-praktyki.md)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/1-wprowadzanie-danych-inputs/data-datepicker.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
