> For the complete documentation index, see [llms.txt](https://support.powerio.com/hub/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.powerio.com/hub/codesys-hvac/en/hvac-library/functionblocks/setpoint/editdate.md).

# EditDate

## `EditDate` (FB)

FUNCTION\_BLOCK EditDate

### Short description

> Input of a date in DATE format (d#2017-11-21)\
> Typical application: setting a date for a switching operation

### Representation

<figure><img src="/files/55da5eb5e7e71407d7df159f5d37cc11dc69b46f" alt=""><figcaption></figcaption></figure>

### Interfaces

#### Outputs

| Name   | Data type | Value range | Initial value | Function                    |
| ------ | --------- | ----------- | ------------- | --------------------------- |
| *dOut* | DATE      |             |               | Output value in DATE format |

#### Setpoints / parameters

| Name          | Data type | Value range | Initial value | Function                   |
| ------------- | --------- | ----------- | ------------- | -------------------------- |
| **dSetPoint** | DATE      |             |               | Input value in DATE format |

### Function description

#### General

This function block is used to transfer an input value in DATE format **dSetPoint** and directly forward it to the output value in DATE format *dOut*.

{% hint style="warning" %}
**Behavior on power failure**

The input value in DATE format **dSetPoint** is stored in a power-failure-safe manner and automatically restored.
{% endhint %}

### Visualization

Matching visualization element from the HVACV Visu Library: **EditDate1** and **EditDate2**

#### Representation

<figure><img src="/files/e55872ccfc7ba818a0a0926ddf68a6e1fff2411f" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/f3848e10c4a885fc847536dfa465abfb7d7d35e4" alt=""><figcaption></figcaption></figure>

#### Interfaces Visu-Element

| Name             | Data type | Type         | Initial value | Function                                                             |
| ---------------- | --------- | ------------ | ------------- | -------------------------------------------------------------------- |
| **datDate**      | DATE      | VAR\_IN\_OUT |               | Enter DATE variable here e.g. from block HVAC.EditDate.dSetPoint     |
| **DisableInput** | BOOL      | VAR\_INPUT   | FALSE         | Here the input can be disabled. The element will then be grayed out. |

{% hint style="info" %}
Note: VAR\_IN\_OUT interfaces must be assigned, VAR\_INPUT are optional.
{% endhint %}

### CODESYS

InOut:

| Scope       | Name        | Type   |
| ----------- | ----------- | ------ |
| Input Const | `dSetPoint` | `DATE` |
| Output      | `dOut`      | `DATE` |


---

# 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://support.powerio.com/hub/codesys-hvac/en/hvac-library/functionblocks/setpoint/editdate.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.
