Discord timestamp generator

Make Discord <t:unix:style> timestamps that show each reader the time in their own zone. Copy any of the 9 styles, preview them the way the Discord client renders them, and convert a timestamp, Unix time, or message ID back to a date.

Make a Discord timestamp

Unix time 1618953630 = 2021-04-20T21:20:30Z

CodeDiscord showsCopy
<t:1618953630:t>
:t Short time
9:20 PM
<t:1618953630:T>
:T Medium time
9:20:30 PM
<t:1618953630:d>
:d Short date
4/20/21
<t:1618953630:D>
:D Long date
April 20, 2021
<t:1618953630:f>
:f Long date, short time (default)
April 20, 2021 at 9:20 PM
<t:1618953630:F>
:F Full date, short time
Tuesday, April 20, 2021 at 9:20 PM
<t:1618953630:s>
:s Short date, short time
4/20/21, 9:20 PM
<t:1618953630:S>
:S Short date, medium time
4/20/21, 9:20:30 PM
<t:1618953630:R>
:R Relative time
an hour ago

<t:1618953630> with no letter shows the same as :f. Discord draws each code in the reader's own time zone and Discord language, so two people can see different days for the same code. Loading your time zone...

Write the message

Type around the codes, or add more with + message in the table. The preview shows the message as a reader in UTC sees it.

E
Event hostToday
Game night starts Tuesday, April 20, 2021 at 9:20 PM (an hour ago)

Relative time (:R) right now

an hour ago

Discord keeps :R current while the message is on screen. Under two minutes away, it changes every second.

Time awayDiscord shows
Under 60 secondsin 30 seconds / 30 seconds ago
60 to 89 secondsin a minute
90 seconds to 59 minutesin 2 minutes ... in 59 minutes
59.5 to 89 minutesin an hour
90 minutes to 21 hoursin 2 hours ... in 21 hours
21.5 to 35 hoursin a day
36 hours to 25 daysin 2 days ... in 25 days
25.5 to 45 daysin a month
About 46 days to 10 monthsin 2 months ... in 10 months
10.5 to 17 monthsin a year
18 months and morein 2 years, 3 years, ...

Convert a Discord timestamp to a date

Paste a <t:...> code (or a whole message), a Unix timestamp, an ISO date, or a Discord message ID.

Read as: Discord timestamp code

<t:1618953630:R>an hour ago
In UTC
Tuesday, April 20, 2021 at 9:20:30 PM UTC
UTC (ISO 8601)
2021-04-20T21:20:30.000Z
Unix seconds
1618953630
Unix milliseconds
1618953630000
Relative (R)
an hour ago

Need the same thing for Slack? The Slack timestamp generator makes <!date> strings, and the timezone converter shows each teammate's local time.

How to add a timestamp to a Discord message

  1. Pick the date and time, and the time zone that time is written in. Press Now for the current time.
  2. Pick a style from the table. :F shows the full date and time, :R counts down ("in 3 hours"), :t shows only the time. Set the reader zone and Discord language to see what someone else gets.
  3. Press Copy next to the style, or build a whole message in the message box and press Copy message.
  4. Paste it into any Discord message box, an event description, or a bot or webhook message, and send. Discord swaps the code for the date as each reader sees it.

Frequently asked questions

How do I make a timestamp in Discord?

Write <t:UNIX:STYLE> in your message, where UNIX is the time in Unix seconds and STYLE is one letter. For example <t:1618953630:F> shows Tuesday, April 20, 2021 at 5:20 PM to a reader in New York and Wednesday, April 21, 2021 at 6:20 AM to a reader in Seoul. It works in any message you type, not only in bots. The generator above writes the code for the date you pick.

What are the Discord timestamp formats?

There are 9 styles. In US English, for April 20, 2021 at 5:20:30 PM: t = 5:20 PM, T = 5:20:30 PM, d = 4/20/21, D = April 20, 2021, f = April 20, 2021 at 5:20 PM, F = Tuesday, April 20, 2021 at 5:20 PM, s = 4/20/21, 5:20 PM, S = 4/20/21, 5:20:30 PM, and R = 5 years ago. A code with no letter, like <t:1618953630>, shows as f. The s and S styles are newer, so older guides do not list them.

How does the Discord relative timestamp (:R) work?

<t:UNIX:R> shows how far the time is from now, such as in 30 seconds, in 2 hours, in a day, or 3 months ago, and Discord keeps it current while the message is on screen. Discord counts seconds up to 59, minutes up to 59, hours up to 21, days up to 25, then months and years. It is the style to use for countdowns to an event or a giveaway end.

Why does my Discord timestamp show a different time for other people?

That is what it is for. Discord draws the code in the time zone of each reader's device and in their Discord language, so a US reader sees 4/20/21, 5:20 PM and a UK reader sees 20/04/2021, 22:20 for the same code. If a reader sets Discord's clock to 12-hour or 24-hour, that wins over the language default. Pick a reader zone and language above to check.

Why is my Discord timestamp showing as plain text?

Discord only converts a code that looks exactly like <t:digits> or <t:digits:letter>, with one of the letters t, T, d, D, f, F, s, S, or R. A space, a letter like :x, a second letter, or a number longer than 17 digits leaves the code as typed. Also check the number is in seconds: a 13-digit millisecond value does render, but as a date tens of thousands of years from now.

How do I get the Unix timestamp for a date?

Pick the date, time, and zone above; the Unix time shows under the fields and inside every code. It is the number of seconds since January 1, 1970 UTC, so 1618953630 is April 20, 2021 at 21:20:30 UTC. In JavaScript it is Math.floor(Date.now() / 1000), in Python int(time.time()).

How do I convert a Discord timestamp to a date?

Paste the code, or the whole message, into the converter above. It reads every <t:...> code, shows what each one displays in the zone and language you pick, and gives the UTC date, Unix seconds, and milliseconds. It also reads a Discord message, user, or server ID, which has its creation time built in.

Can I use Discord timestamps in embeds and bot messages?

Yes. Discord renders the same codes in message text sent by bots and webhooks, and in embed descriptions and field values. Send the code as text, such as f"Starts <t:{unix}:F>" in Python. Discord's developer docs list the styles under Message Formatting.

Is there a Discord timestamp command?

Discord has no built-in /timestamp slash command. You type the <t:...> code yourself, which this generator writes for you, or add a bot that offers one. Once sent, the code works for everyone in the channel without any bot.

Related reading

Slack Green does one thing: it keeps your Slack presence dot green while you are actually working, so a quiet keyboard does not mark you away. Try it free.