> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/datetime-input.md).

# Date/Time Input

## Description

This part allows your application users to enter a date or time in an application or to select a date/time from a dropdown calendar.

## Use

This part allows your application users to enter a date or time manually or select a date from a selectable calendar. If the user selects a date using the date picker, the system will format the date according to the configured settings.

## Tips and Tricks

The runtime UI for the date/time picker has some new features:

* **Date Picker:** The date picker loads current month by default. "Today" is indicated by a small blue icon. You can access prior/future months sequentially using the left/right arrows. Clicking ON the month one or more times provides broader categories; for example, the first click shows months in current year, second click shows range of individual years, third click shows even broader year ranges.
* **Time Picker:** Cycle up or down to adjust the hours, minutes, and seconds. Change the format if you want time input as am/pm or 24-hour clock. Click on the hours or minutes to get a picklist of all hours in the day or 15 minute intervals for alternative selection mechanism. To remove the seconds in scenarios where you just need time in hours/minutes, change the date format on the part in the Designer.

## Editor Fields

| Tab      | Field Name                              | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | <p>Type/<br>Options</p>     | <p>Optional/<br>Mandatory</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |        |          |
| -------- | --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | -------- |
| Basic    | HTML enabled                            | When this is enabled you can put HTML formatting in the Question caption, which means the system will display HTML tags in the text in the caption editor as they would appear in a browser. The editor browser provides limited HTML editing options for text formatting. You can toggle the HTML-enabled button on and off to alternate between seeing and editing tags and displaying them as they will appear.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Yes \| No                   | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | Caption                                 | This is text that appears in front of the date input field.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Text                        | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | Data object                             | This is the name of the data object that stores the selected or entered date.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Data object                 | Mandatory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |        |          |
| Basic    | Input Type                              | <p>This choice determines the expected value type, the widgets on screen and the structure of the saved variable for this part.<br>In all cases, the system shows an input box to allow users to type a value. The choices determine which of the on-screen date and time widgets also appear using a mouse.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Date \| Time \| Date & Time | Mandatory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |        |          |
| Basic    | <p>Display Format:<br>- Date - Time</p> | <p>This field allows you to set the date format:<br>- Month, date, and year in various orders with "/" or "-" separator.<br>- Time Formats:<br>- Hours and minutes with/without seconds<br>- 24-hour or 12-hour with am/pm<br>The default format is based on the format set in the System Configuration package.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Options                     | Mandatory                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |        |          |
| Basic    | Submit on select                        | If you check this checkbox the system automatically submits the selected/entered date value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | Yes \| No                   | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | Show weeks of the year                  | <p>If you select <em>Yes</em>, the system shows the user week numbers as part of date-picker widget.<br><img src="https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-a4d44d1485822cc5e3ef1ef3d099902cf21fe6af%2F8e055ea6-a0de-41bb-8fcd-9d0f0ce8cb04.jpg?alt=media" alt=""></p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Yes \| No                   | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | Min year                                | <p>This setting allows you to limit the dates the date picker displays to only those after the specified year. The input format is yyyy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           | -y(yy)                      | +y(yy) and the default year is 1900.<br>Examples:<br>- If you enter <em>1950</em>, the system displays dates from 1950 on.<br>- If you enter <em>-100</em>, the system displays all years 100 years prior to the current year.<br>- If you enter <em>+2</em>, the system displays dates starting 2 years in the future from the current date and beyond.<br>Note: This setting is a guide for which years the system should display. It is not a validation that the user entered the correct dates; for example, users could still enter a date prior to the configured Min year.</p> | Number | Optional |
| Basic    | Max year                                | <p>This setting allows you to limit the dates the date picker displays to only those before the specified year. The input format is yyyy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | -y(yy)                      | +y(yy) and the default: is +10.<br>Examples:<br>- If you enter <em>1950</em>, the system displays only dates up to 1950.<br>- If you enter <em>-100</em>, the system displays dates up to 100 years before the current date\*\*.\*\*<br>- If you enter <em>+2</em>, the system displays dates up to 2 years past the current date.<br>Note: This setting is a guide for which years the system should display. It is not a validation that the user entered the correct dates; for example, users could still enter a date prior to the configured Min year.</p>                       | Number | Optional |
| Basic    | Hide calendar                           | If you check this checkbox the system will not display the date/calendar icon. The user will only be able to manually enter a date.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Checkbox                    | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | First day                               | This field allows you to select the first day of the week. When you choose *(Default),* the system uses the first day of the week as determined by the selected location.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Options                     | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | Disabled Days                           | This field allows you to select which days of the week cannot be selected.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Options                     | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Basic    | Locale                                  | <p>This field allows you to specify a locale (e.g. nl for The Netherlands, fr for France) to override the selected settings with locale-specific formats. If you leave this field empty the system uses the default settings.<br>Check the "Use Locale" box to apply the locale during runtime.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Text and Checkbox           | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Validate | Type                                    | <p>This allows you to have the system trigger the display of an error message based on user-defined parameters:<br>- <strong>mandatory</strong>: This means the user must provide a value or the system will display an error message.<br>- <strong>numeric</strong>, <strong>percentage</strong>, <strong>currency</strong>: These mean that the value the user enters must be a number and may contain a comma or dot as decimal character. This validation rule can be used when the data-object-type is set to text. This combination allows the user to enter decimal number and allows users to enter a different decimal point (e.g. comma).<br>- <strong>time</strong>: This means the input must be a time string: hh:mm (12:14, for example) or hhmm (1214) are both allowed.<br>- <strong>custom</strong>: This allows the user to set a custom validation parameter.<br>- <strong>email</strong>: This means the value the user enters must contain an '@' symbol.<br>- <strong>date</strong>: This means the input must be a date string; mm/dd/yy, for example.</p> | Options                     | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Validate | Condition                               | This is only required when type=*custom*--when the user has set a custom validation parameter. It tells the system under which condition to display a validation message.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Text                        | Conditional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |        |          |
| Validate | Message                                 | This is the message the system displays to the end-user if a validation rule is not met. The system displays the message associated with the first violated rule.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |                             | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Advanced | Events                                  | These are the JavaScript events that should be attached to the date picker.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Text                        | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |
| Advanced | Disabled                                | This parameter indicates whether the input field is disabled or not. If the field is disabled, the end-user cannot change the displayed value.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Yes \| No                   | Optional                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |        |          |


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/platform-documentation/process-node-parts/datetime-input.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
