# DatetimeOutputParser

> **Class** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/output_parsers/datetime/DatetimeOutputParser)

Parse the output of an LLM call to a datetime.

## Signature

```python
DatetimeOutputParser()
```

## Extends

- `BaseOutputParser[datetime]`

## Properties

- `format`

## Methods

- [`get_format_instructions()`](https://reference.langchain.com/python/langchain-classic/output_parsers/datetime/DatetimeOutputParser/get_format_instructions)
- [`parse()`](https://reference.langchain.com/python/langchain-classic/output_parsers/datetime/DatetimeOutputParser/parse)

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/79cab2dc7f58be720cac43db3677b4c1fd971f91/libs/langchain/langchain_classic/output_parsers/datetime.py#L8)