> ## Documentation Index
> Fetch the complete documentation index at: https://cometchat-22654f5b-docs-rn-guide-message-privately.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Date

> Date — CometChat documentation.

`CometChatDate` is a UILabel which is used to show the date and time. It provides various methods to customize the appearance and behavior of the CometChatDate.

## How to integrate CometChatDate ?

Since `CometChatDate` is a UILabel, It can be added directly in the build method. `CometChatDate` includes various parameters to customize its UI.

#### Usage

<Tabs>
  <Tab title="Swift">
    ```swift theme={null}
    //create object of CometChatDate
    let date = CometChatDate()
    ```
  </Tab>
</Tabs>

## Methods

| Methods                              | Type                 | Description                                                                    |
| ------------------------------------ | -------------------- | ------------------------------------------------------------------------------ |
| `set(timestamp: Int)`                | Int                  | Used to set time stamp                                                         |
| `set(pattern: CometChatDatePattern)` | CometChatDatePattern | Used to set pattern with different logics *TIME*,*DAY\_DATE*,*DAY\_DATE\_TIME* |
