# 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/311675a517f51ec6c77454124293c58df517e952/libs/langchain/langchain_classic/output_parsers/datetime.py#L8)