> ## 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.

# DAYBEGIN

> The DAYBEGIN function sets the hours, minutes, and seconds of a specified date to 00:00:00. It works across multiple YiDA scenarios, including forms, workflow design, and integration & automation. Pass a timestamp as the parameter to return the zeroed date timestamp, which can be assigned directly to a date component.

This topic describes the syntax, parameters, and return value of the DAYBEGIN function, along with an example of how to use it.

## Supported Product Scenarios

The DAYBEGIN function can be used in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow node
* Connector

## Format

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

## Attribute Description

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

## Return Value

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

## Example

Use the `DAYBEGIN()` function to set the hours, minutes, and seconds of a specified date to `00:00:00`.

## Try It

Returns the timestamp after the hours, minutes, and seconds of the specified date component's timestamp are set to zero.
