# Date - DatePicker

Date picker component

![](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/f16dkO410GdfwWO99bO1/5_files/image2025-5-14_15-2-16.png)

## Component properties

| Eximee Designer property                                                                                | Attribute name in Source | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| ------------------------------------------------------------------------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><strong>Mask presentation</strong><br>(section <strong>Styling</strong>)</p>                         | autoMask                 | Display of 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</li><li>dd - two-digit day of the month (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 component's default date format complies with regional settings.</p><p>Note! Changing the date format affects how it is displayed in <strong>Default value</strong> (defaultValue). Any change of 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 a description of the field below it, default is empty. Availability of the feature 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      | Display the system date as the default value in the field (default value "false").                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| <p><strong>Drop-down list for month/year selection</strong><br>(section <strong>Other</strong>)<br></p> | useDropDownSelector      | <p>Enabled drop-down list for month/year selection (default value "false").<br></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>With time indication</strong><br>(section <strong>Other</strong>)<br></p>                    | withTime                 | Set to "true" means that time will appear after the date in the format: 00:00                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| **Unavailable dates**                                                                                   | disabledDates            | A comma-separated list of days (as timestamps) whose selection should be blocked.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

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

## External data source

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

* service - the service that will provide the data to display in 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 service output parameters that can be mapped to component attributes; the list of available attributes is:
  * value - 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 list of timestamps separated by commas. Example: 1739145600000,1739577600000
  * dateRange - range of possible dates to choose from. 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 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="https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/541vbmY2F8CAoq3BkPD0/5_files/image2022-12-16_13-15-28.png" alt=""></p> | <img src="https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/A7RdJQvIVuhJJN5gUIcR/5_files/image2025-5-19_12-48-14.png" alt="" data-size="original"> |
| ![](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/K4UxGJecLXRPKtCXnj4p/5_files/image2022-12-16_13-16-25.png)                          | ![](https://content.gitbook.com/content/2CssJT0zIo4SJQLbSZ6l/blobs/sByRrdlNurPEuSGn5JJE/5_files/image2025-5-19_12-48-40.png)                                    |

<figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2FftFwij6eOSLiA0dTNX7x%2Fimage2025-5-19_12-49-27.png?alt=media&#x26;token=b7923ff1-576d-413f-8738-cf6871b729fb" alt="" width="491"><figcaption><p align="center"><em><strong>Illustration 1.</strong> Other configuration examples of the component appearance in the application</em></p></figcaption></figure>

<div><figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2FauwGWUpsjHKOqnV0TRxV%2Fimage2025-5-19_12-46-52.png?alt=media&#x26;token=8f7f9ab8-6253-4b89-919d-314ab384907e" alt=""><figcaption></figcaption></figure> <figure><img src="https://2112972046-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F2CssJT0zIo4SJQLbSZ6l%2Fuploads%2FWBNJGE7NJyHEv01izFsz%2Fimage2025-5-19_12-45-1.png?alt=media&#x26;token=fa23be95-cd9a-41f7-98af-5cbb4df14f12" alt=""><figcaption><p align="center"><em><strong>Figures 2 and 3.</strong> Example appearance of popups with 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 next to the month in the calendar (default value "true").                                                                                                                                                                                                                                                                                                                                                                                                                              |
| <p><strong>Selection only from the calendar</strong><br>(section <strong>Other</strong>)<br></p>               | disabledInputTyping      | Set to "true" means that it will only be possible to select a date from the popup. It will not be possible to type the date manually into the field. Desktop channel only.                                                                                                                                                                                                                                                                                                                                   |
| <p><strong>Placeholder</strong><br>(section <strong>Data quality</strong>)<br></p>                             | placeholderText          | Text displayed as **Placeholder** 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 will appear first after clicking the calendar. Possible values: DEFAULT - behavior as before, MULTI\_YEAR - display 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 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, 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 in the field.</p> |

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