# Timestamp Parser (/placeholders/parsers/timestamp)



## Usage [#usage]

To use the parser, insert the following syntax in your text:

`{timestamp(format):variable}`

* You can also reference this parser using the aliases: time, ts

## Examples [#examples]

1. Converting a UNIX timestamp:

* Input: `{timestamp(shortTime):1735772400}`
* Output: `00:00`

2. Using placeholders:

* Input: `{timestamp(relative):{member.joinedAt}}`
* Output: `5 hours ago`

## Available Formats [#available-formats]

| Format        | Description                      | Example                        |
| ------------- | -------------------------------- | ------------------------------ |
| shortTime     | Time in hours and minutes        | 10:15                          |
| longTime      | Time with seconds                | 10:15:00                       |
| shortDate     | Date in MM/DD/YYYY format        | 01/02/2025                     |
| longDate      | Date in DD Month YYYY format     | 02 January 2025                |
| dateWithTime  | Date with time in short format   | 02 January 2025 10:15          |
| fullDateTime  | Full date and time, with weekday | Thursday, 2 January 2025 10:15 |
| shortDateTime | Short date and time              | 01/02/2025, 10:15              |
| longDateTime  | Short date and long time         | 01/02/2025, 10:15:00           |
| relative      | Relative time description        | 1 day ago                      |
