> For the complete documentation index, see [llms.txt](https://docs.ziomark.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ziomark.xyz/get-endpoints/date-and-time-formatter.md).

# Date & Time Formatter

## /format-date-time

This endpoint formats the provided date and times from the query parameters into the specified formats and returns them in the response.

### Query Parameters

* `data`: (string) Date in the format "DD/MM/YYYY".
* `ora`: (string) Time in the format "HH:MM" (24-hour format).
* `ora2`: (string) Another time in the format "HH:MM" (24-hour format).

### Response

The response will contain a JSON object with the formatted date and times.

* `formattedDate`: (string) Date in the format "YYYY-MM-DD".
* `formattedTime1`: (string) Time 1 in the format "HH:MM".
* `formattedTime2`: (string) Time 2 in the format "HH:MM".

### Example

```json
{
    "formattedDate": "2024-04-22",
    "formattedTime1": "09:30",
    "formattedTime2": "17:00"
}
```
