> For the complete documentation index, see [llms.txt](https://docs.tabula.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tabula.io/data-transformation/formulas/date-and-time-functions/datetimefromparts.md). Agents can also search and read this documentation through its [MCP server](https://docs.tabula.io/~gitbook/mcp).

# DateTimeFromParts

Creates a datetime from the year, month, day, hours, minutes, and seconds values

```mathematica
DateTimeFromParts(2023,2,8,14,20,1) → 2023-02-08 14:20:01.000
DateTimeFromParts(2019,5,29,7,56,0) → 2019-05-29 07:56:00.000
```

#### Inputs

`DateTimeFromParts(year, month, day, hour, minutes, seconds)`

* `year` - Year value as a number
* `month` - Month value as a number
* `day` - Day value as a number
* `hour` - Hour value as a number
* `minutes` - Minutes value as a number
* `seconds` - Seconds value as a number
