# ParallelDataCollection.parse\_date

```python
static coinmetrics._data_collection.ParallelDataCollection.parse_date(date_input)
```

Parses a datetime object or datetime string into a datetime object. Datetime string must be a valid ISO 8601 format. Timezone aware objects are converted to UTC :param date\_input: Union\[datetime, date, str] date to parse into datetime :return: datetime

* **Parameters:** **date\_input** ([*datetime*](https://docs.python.org/3/library/datetime.html#datetime.datetime) *|* [*date*](https://docs.python.org/3/library/datetime.html#datetime.date) *|* [*str*](https://docs.python.org/3/library/stdtypes.html#str) *|* *Timestamp*)

**Returns:**

* [*datetime*](https://docs.python.org/3/library/datetime.html#datetime.datetime)


---

# Agent Instructions: 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:

```
GET https://gitbook-docs.coinmetrics.io/python-api-client/reference/parallel-data-collection/parse_date.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
