> For the complete documentation index, see [llms.txt](https://docs.helmut.de/helmut4-releases/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.helmut.de/helmut4-releases/v4.10.0/helmut4-components/helmutfx/metadata/date-time-datetime.md).

# Date-Time-Datetime

The utilization of the three date and time types necessitates specific guidelines for determining when they should be assigned a dedicated value through the 'Default value' field in the Metadata menu.

An incorrect setting may result in an 'Invalid Date' error.

{% hint style="warning" %}
It is crucial that the Pre-Resolve checkbox for the designated metadata value is enabled.
{% endhint %}

<figure><img src="/files/iB4jDFxvrFWukYpbB1iS" alt=""><figcaption><p>Default value: date, time &#x26; datetime</p></figcaption></figure>

### DATE

Setting metadata for a date is straightforward.

For example: Date - 2024-09-02

* Default value: +0
  * Today -> 2024-09-02<br>
* Default value: +1
  * Tomorrow -> 2024-09-03<br>
* Default value: -1
  * Yesterday -> 2024-09-01<br>
* Default value: +10
  * -> 2024-09-12

In addition to using the symbols + or - with an integer for inputting dates, you can also use the YYYY-MM-DD pattern or the wildcards [{date.year}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-year-1.md)-[{date.month}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-month-1.md)-[{date.day}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-day-1.md).

The input dialogue for configuring or modifying the metadata field appears as follows:

<figure><img src="/files/Qu6tMQkgNDHNM3fsVvLc" alt="" width="375"><figcaption><p>Set date in metadata</p></figcaption></figure>

### TIME

Setting the time can be achieved by inputting the time in the following pattern: HH:mm or by using the wildcards [{time.hour}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/time-hour.md):[{time.minute}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/time-minute.md).

Please note that seconds cannot be used with this metadata type.

For example: current time - 12:23

* Default value: {time.hour}:{time.minute}
  * -> 12:23

The input dialogue for configuring or modifying the metadata field appears as follows:

<figure><img src="/files/VPjKRDiXrJjU8AZR0kKZ" alt="" width="375"><figcaption><p>Set time in metadata</p></figcaption></figure>

### DATETIME

Datetime is a combination of date and time. Setting the metadata can be done manually by using a string with this pattern: YYYY-MM-DD HH:mm

It is possible to set this as well with dedicated wildcards:

[{date.year}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-year-1.md)-[{date.month}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-month-1.md)-[{date.day}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-day-1.md) [{time.hour}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/time-hour.md):[{time.minute}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/time-minute.md)

For example: current date & time - 2024-01-09 12:23

* Default value: {date.year}-{date.month}-{date.day} {time.hour}:{time.minute}
  * -> 2024-01-09 12:23

It is possible to use contextual date wildcards as well, for further information refer to

* [{date.year.?}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-year.md)
* [{date.month.?}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-month.md)
* [{date.day.?}](/helmut4-releases/v4.10.0/helmut4-components/streamdesigner/wildcards/date-and-time-21/date-day.md)

{% hint style="info" %}
Please ensure strict adherence to the pre-defined syntax when assigning a default value.
{% 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.helmut.de/helmut4-releases/v4.10.0/helmut4-components/helmutfx/metadata/date-time-datetime.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.
