# EditDT

## `EditDT` (FB)

FUNCTION\_BLOCK EditDT

### Short description

> Input of a date and time in the DATE\_AND\_TIME format (dt#2017-11-21-14:36:00)\
> Typical application: setting a switching time

### Representation

<figure><img src="/files/4ed8733222cdf015cf80f74f4dffe2777ca0aa6b" alt=""><figcaption></figcaption></figure>

### Interfaces

#### Outputs

| Name    | Data type       | Value range | Initial value | Function                               |
| ------- | --------------- | ----------- | ------------- | -------------------------------------- |
| *dtOut* | DATE\_AND\_TIME |             |               | Output value in DATE\_AND\_TIME format |

#### Setpoints / parameters

| Name           | Data type       | Value range | Initial value | Function                              |
| -------------- | --------------- | ----------- | ------------- | ------------------------------------- |
| **dtSetPoint** | DATE\_AND\_TIME |             |               | Input value in DATE\_AND\_TIME format |

### Function description

#### General

This function block is used to pass an input value in DATE\_AND\_TIME format **dtSetPoint** and directly transfer it to the output value in DATE\_AND\_TIME format *dtOut*.

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

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

### CODESYS

InOut:

| Scope       | Name         | Type |
| ----------- | ------------ | ---- |
| Input Const | `dtSetPoint` | `DT` |
| Output      | `dtOut`      | `DT` |


---

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