# DATETIME

| **Description** | The **`DATETIME`** function generates a datetime by combining the specified year, month, day, hour, minute, and second values. This is useful for creating precise datetime records or working with timestamped data. |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Syntax**      | DATETIME(**`year`**, **`month`**, **`day`**, **`hour`**, **`minute`**, **`second`**)                                                                                                                                  |

1. **`year`**: The numeric value representing the year (e.g., 2023).
2. **`month`**: The numeric value representing the month (1 for January, 2 for February, and so on).
3. **`day`**: The numeric value representing the day of the month.
4. **`hour`**: The numeric value representing the hour (0-23).
5. **`minute`**: The numeric value representing the minute (0-59).
6. **`second`**: The numeric value representing the second (0-59).

## Example

### Table

<table data-full-width="false"><thead><tr><th>Event</th><th>Year</th><th>Month</th><th>Day</th><th>Hour</th><th>Minute</th><th>Second</th></tr></thead><tbody><tr><td>Event A</td><td>2023</td><td>9</td><td>15</td><td>10</td><td>30</td><td>45</td></tr><tr><td>Event B</td><td>2023</td><td>8</td><td>25</td><td>14</td><td>15</td><td>0</td></tr><tr><td>Event C</td><td>2023</td><td>9</td><td>1</td><td>9</td><td>0</td><td>20</td></tr></tbody></table>

### Function

```
DATETIME(`Year`, `Month`, `Day`, `Hour`, `Minute`, `Second`)
```

### Results

| DATETIME (datetime)      |
| ------------------------ |
| 2023-09-15T10:30:45.000Z |
| 2023-08-25T14:15:00.000Z |
| 2023-09-01T09:00:20.000Z |
