# Timestamp Templates

The Chat allows you to customize how timestamps are displayed for messages through the [`timestampTemplate`](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api/chatprops#timestamptemplate) property.

To set a custom timestamp template, create a React component and assign it to the `timestampTemplate` property of the Chat component.

## Timestamp Template Examples

The demo showcases four timestamp template implementations:

* **Default**: Built-in Chat component timestamp display
* **Relative**: Shows relative time (e.g., "5m ago", "2h ago") that updates automatically
* **Detailed**: Full date and time in a multi-line format
* **Interactive**: Clickable button to toggle between relative and absolute time formats

> **Note**: The Relative, Detailed, and Interactive templates are custom implementations that demonstrate the flexibility of the timestamp template feature. You can implement any custom logic, formatting, or interaction patterns based on your specific requirements.

[Demo Source](https://demos.telerik.com/kendo-react-ui/conversational-ui/chat/customization/timestamp-templates/source.txt)

## Suggested Links

* [Message Templates](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/customization/message-templates)
* [Status Templates](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/chat/customization/status-templates)
* [Chat API Reference](https://www.telerik.com/kendo-react-ui-develop/components/conversationalui/api)
