> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# DAYEND

> The DAYEND function sets the hours, minutes, and seconds of a specified date to the last moment of the day, that is, 23:59:59. This function is supported across multiple YiDA scenarios, such as Form, workflow design, and integration & automation. It takes a timestamp as input and returns the modified date timestamp, which can be applied directly to date components.

The **DAYEND** function sets the hours, minutes, and seconds of a specified date to the last moment of the day, that is, `23:59:59`.

## Supported Product Scenarios

The DAYEND function is supported in the following YiDA scenarios.

* Form (main table field)
* Form (business association rule)
* Form (validation)
* Workflow design (validation rule)
* Workflow design (association action)
* Integration & automation
* Workflow node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
DAYEND(timestamp)
```

## Attribute Description

| **Attribute** | **Required** | **Description**                                                             |
| ------------- | ------------ | --------------------------------------------------------------------------- |
| timestamp     | Yes          | The timestamp of the date to be set. A date component can be used directly. |

## Return Value

| **Return value type** | **Description**                                                                  |
| --------------------- | -------------------------------------------------------------------------------- |
| timestamp             | The modified date timestamp, which can be assigned directly to a date component. |

## Example

As shown below, you can use the `DAYEND()` function to set the hours, minutes, and seconds of a specified date to `23:59:59`.

## Try It Out

Returns the timestamp result after resetting the hours, minutes, and seconds of a specified date component's timestamp.
