> For the complete documentation index, see [llms.txt](https://docs.radiantdrift.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.radiantdrift.com/getting-started/date-time-format.md).

# Date/Time Format

Date/time values are found both as inputs and outputs in multiple places in the API.

## Output

We use [ISO 8601 format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString) including milliseconds for all output values. Here's an example showing standard date/time output formatting:

{% code lineNumbers="true" %}

```json
{
  "query": {
    "name": "body-position",
    "start-date": "2023-06-25T17:04:02.000Z",
    "end-date": "2023-06-25T17:04:03.000Z",
    //...
  }
}
```

{% endcode %}

## Input

When a date/time is required as an input to an API endpoint, you may use a variety of formats.

`[DATE_TIME]` must be a string value representing a date, parsed and interpreted using the same algorithm implemented by Javascript's [`Date.parse()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/parse)

Examples include:

ISO 8601, no milliseconds:

{% code overflow="wrap" %}

```
GET https://api.radiantdrift.com/body-position/2023-06-25T17:04:02Z/[...]
```

{% endcode %}

ISO 8601, with milliseconds:

{% code overflow="wrap" %}

```
GET https://api.radiantdrift.com/body-position/2023-06-25T17:04:02.555Z/[...]
```

{% endcode %}

Date string:

{% code overflow="wrap" %}

```
GET https://api.radiantdrift.com/body-position/01%20Jan%201970%2000:00:00%20GMT/[...]
```

{% endcode %}

See [date time string format](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date#date_time_string_format) for caveats on using different formats.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.radiantdrift.com/getting-started/date-time-format.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
