Skip to content
Private: files never leave your device

Discord Timestamp Formats

Discord can show a date and time that every reader sees in their own time zone. You type a short code with a Unix timestamp, and Discord turns it into a time, a date or a countdown such as in 3 days. This cheat sheet lists all nine styles in the Discord developer documentation, with the exact code and what each one shows.

A Discord timestamp is written as t, a Unix time in seconds and an optional style letter. The nine styles are t, T, d, D, f, F, s, S and R, the default is f, and the number must be in seconds, not milliseconds

A Discord timestamp is written as <t:SECONDS:STYLE>, where SECONDS is a Unix time in seconds and STYLE is one of nine letters: t, T, d, D, f, F, s, S or R. Leave the style out, as in <t:1618953630>, and Discord uses f, a long date with a short time. Discord shows the result in each reader's own time zone and locale. The styles below were checked against the Discord developer documentation on 25 November 2026.

All Discord timestamp styles

The examples use the timestamp from Discord's own documentation, 1618953630, which is 20 April 2021 at 21:20:30 UTC. Discord's table shows it as 16:20, the time for a reader five hours behind UTC; your readers will see their own local time instead.

StyleCode to typeExample shown in Discord docsName in the docs
t<t:1618953630:t>16:20Short Time
T<t:1618953630:T>16:20:30Medium Time
d<t:1618953630:d>20/04/2021Short Date
D<t:1618953630:D>April 20, 2021Long Date
f (default)<t:1618953630:f> or <t:1618953630>April 20, 2021 at 16:20Long Date, Short Time
F<t:1618953630:F>Tuesday, April 20, 2021 at 16:20Full Date, Short Time
s<t:1618953630:s>20/04/2021, 16:20Short Date, Short Time
S<t:1618953630:S>20/04/2021, 16:20:30Short Date, Medium Time
R<t:1618953630:R>4 years agoRelative Time

The style letters are case sensitive: lowercase t is the short time and uppercase T adds seconds. The order of day and month, and whether the clock is 12 or 24 hour, follows each reader's language setting, so the same code can read 20/04/2021 for one member and 4/20/2021 for another. If you only need a date and time without the month written out, s and S are the shortest styles that show both.

Which style to use

You want to showUseExample code
When an event starts, with the dateF or f<t:1798156800:F>
A countdown that updates by itselfR<t:1798156800:R>
Both the date and a countdownF followed by R<t:1798156800:F> (<t:1798156800:R>)
Just a time for todayt<t:1798156800:t>
A compact date in a table or listd or s<t:1798156800:d>

In these examples, 1798156800 is 25 December 2026 at 00:00 UTC, calculated with JavaScript Date.

How to get the Unix seconds

  1. Open Unix Timestamp Converter and enter the date and time in your own time zone.
  2. Copy the result in seconds. Discord's documentation states that timestamps are expressed in seconds.
  3. If you have a 13 digit number, it is in milliseconds: remove the last three digits. 1618953630000 becomes 1618953630.
  4. Type <t:, paste the number, add : and a style letter, then close with >.
  5. Send the message and check that the time shown matches the local time you started from.

For the background on Unix time itself, read Unix timestamps explained.

When a timestamp does not work

What you seeLikely causeFix
The code shows as plain textA missing angle bracket or colon, or a space inside the codeWrite it exactly as <t:1618953630:R> with no spaces
The year is tens of thousands in the futureThe number is in millisecondsDrop the last three digits
The time is hours offThe seconds were worked out from the wrong time zoneRebuild the timestamp from the correct local time or from UTC
An unknown style letterThe letter is not one of the nine in the tableUse t, T, d, D, f, F, s, S or R

Bonus: the time hidden in a Discord ID

Every Discord ID is a snowflake, and Discord documents that its top 42 bits are the milliseconds since the Discord Epoch, the first second of 2015, or 1420070400000. The formula in the docs is (snowflake >> 22) + 1420070400000. Applied to the example user ID in the documentation, 80351110224678912, it gives 10 August 2015 at 17:26:37 UTC. Divide the result by 1,000 and you can drop it into a timestamp code. Sharing files on the same server? See Discord file size limits.

Sources and dates

PageCheckedUsed for
Discord Developer Docs: Reference, Message Formatting25 November 2026Timestamp code structure, the nine styles and their examples, f as default, seconds and local time zone
Discord Developer Docs: Reference, Snowflakes25 November 2026Discord Epoch and the snowflake timestamp formula

Frequently asked questions

What is the Discord timestamp format?

Type &lt;t:SECONDS:STYLE&gt;, for example &lt;t:1618953630:R&gt;. SECONDS is a Unix time in seconds and STYLE is one of t, T, d, D, f, F, s, S or R.

How do I make a Discord countdown?

Use the R style, for example &lt;t:1798156800:R&gt;. It shows a relative time such as in 3 days and updates as time passes.

What is the default Discord timestamp style?

f, which shows a long date with a short time, such as April 20, 2021 at 16:20. It is used when you leave the style letter out.

Do Discord timestamps show in my time zone?

Yes. Discord displays the timestamp in each reader's own time zone and locale, so everyone sees their local time.

Why is my Discord timestamp thousands of years away?

The number is probably in milliseconds. Discord expects seconds, so remove the last three digits of a 13 digit number.