# Date - DatePicker

Date picker component

![](/files/534dd032a95be0befdd3eb60dee962d75cd6aaca)

## Component properties

| Eximee Designer property                                                                          | Attribute name in 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. Default set to dd-MM-yyyy. Values that can be used to compose the date format:</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, period, hyphen, etc.</li></ul><p>The default date format for the component is locale-aware.</p><p>Note! Changing the date format affects how it is displayed in the <strong>Default value</strong> (defaultValue). Any change of the format requires correcting the default date.</p> |
| <p><strong>Date range</strong><br>(section <strong>Data quality</strong>)<br></p>                 | dateRange                | <p>Narrowing 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 excluding today)</li><li><strong>FUTURE</strong> (future dates including today)</li><li><strong>FUTURE\_WITHOUT\_TODAY</strong> (future dates excluding today)</li></ul>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| <p><strong>Field description</strong><br>(section <strong>Data quality</strong>)<br></p>          | description              | Text displayed as the field description below it; by default, it is empty. 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 shown after a date change 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      | Display the system date in the field as the default value (default value "false").                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <p><strong>Dropdown for month/year selection</strong><br>(section <strong>Other</strong>)<br></p> | useDropDownSelector      | <p>Enabled dropdown for month/year selection (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 the time will appear 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

We can feed the control using a script; to do this, 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 in the control
* input parameters - a list of service parameters that we can populate with variables or values from the application
* output parameters - a list of service output 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 days that the user will not be able to select. The value is a comma-separated list of timestamps. 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 a date? Possible values: true, false.

## Example component settings

Set **Date format** (dateFormat) determines which appearance of the date component 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 popup calendars</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 Source | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Year display in the calendar header</strong><br>(section <strong>Other</strong>)<br></p>            | showYearInHeadline       | The year is displayed in the calendar next to the month (default value "true").                                                                                                                                                                                                                                                                                                                                                                                                                         |
| <p><strong>Selection from 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 a date manually into the field. For DESKTOP channel only.                                                                                                                                                                                                                                                                                                                                 |
| <p><strong>Placeholder</strong><br>(section <strong>Data quality</strong>)<br></p>                             | placeholderText          | Text displayed as **Placeholder** of the field; by default, it is empty.                                                                                                                                                                                                                                                                                                                                                                                                                                |
| <p><strong>Initial view</strong><br>(section <strong>Other</strong>)<br></p>                                   | startViewMode            | Selection of the "screen" that appears first after clicking the calendar. Possible values DEFAULT - behavior as before, MULTI\_YEAR - show the year selection screen first.                                                                                                                                                                                                                                                                                                                             |
| <p><strong>Date format for the unfocused field</strong><br>(section <strong>Basic properties</strong>)<br></p> | unfocusedFormat          | <p>Custom date format for a field that is not focused.</p><p>Allowed formats are the same as in the field with <strong>Date format</strong>. If the field is empty, then <strong>Date format for the unfocused field</strong> 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 into the field.</p> |

{% hint style="info" %}
♿WCAG: [WCAG best 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: 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.eximee.com/documentation/documentation-en/budowanie-aplikacji/interfejs-uzytkownika/formularze/biblioteka-komponentow-bazowych/1-wprowadzanie-danych-inputs/data-datepicker.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.
