Discord timestamp generator

Updated

A Discord timestamp is a code like <t:1767225600:F> that Discord turns into a date shown in each reader's own time zone and language. Pick a date, time and time zone below and copy any of the nine styles Discord supports. Runs in your browser.

StylePaste into DiscordReaders see (your locale)
Short time<t:1800000000:t>8:00 AM
Medium time<t:1800000000:T>8:00:00 AM
Short date<t:1800000000:d>01/15/2027
Long date<t:1800000000:D>January 15, 2027
Long date, short time (default)<t:1800000000:f>January 15, 2027 at 8:00 AM
Full date, short time<t:1800000000:F>Friday, January 15, 2027 at 8:00 AM
Short date, short time<t:1800000000:s>01/15/2027, 8:00 AM
Short date, medium time<t:1800000000:S>01/15/2027, 8:00:00 AM
Relative time<t:1800000000:R>in 0 seconds

Discord shows each reader the time in their own time zone and language, so the preview above is what you would see; someone in another country sees the same moment in their local time. Relative times (R) update live in the Discord client.

What does a Discord timestamp look like?

Discord timestamp syntax<t:opens the timestamp1767225600Unix seconds (UTC):Fstyle letter (optional)>closes it
Discord timestamp syntax

Typed into a message, the code becomes a highlighted date. This is roughly how it looks to a reader:

YouToday at 4:20 PM

Game night starts Thursday, January 1, 2026 at 12:00 AM (in 0 seconds)

Which timestamp styles does Discord support?

Nine, as listed in Discord's developer reference (examples there use a 24-hour English locale; readers see their own format):

StyleNameExample output
tShort time16:20
TMedium time16:20:30
dShort date20/04/2021
DLong dateApril 20, 2021
fLong date, short time (default)April 20, 2021 at 16:20
FFull date, short timeTuesday, April 20, 2021 at 16:20
sShort date, short time20/04/2021, 16:20
SShort date, medium time20/04/2021, 16:20:30
RRelative time4 years ago

Why is my Discord timestamp showing as plain text?

Check the format character by character: angle brackets, a lowercase t, colons, and a number of seconds. A millisecond value (13 digits, as JavaScript's Date.now() returns) points thousands of years ahead, so divide it by 1,000. An unknown style letter, a space inside the brackets, or a code inside a code block also stops it rendering. Everything else about Discord formatting is on the Discord markdown cheat sheet.

How do Discord timestamps work?

You send <t:UNIX:STYLE>, where UNIX is the number of seconds since 1 January 1970 UTC and STYLE is one letter. Discord replaces the code with a date formatted for each reader: someone in Tokyo and someone in New York see the same moment in their own local time. Without a style letter, Discord uses f (long date, short time).

How do I find the Unix timestamp for a date?

Pick the date, time and time zone in the generator above; the Unix field updates as you go, and every code in the table already contains it. Paste an existing <t:…> code or a plain Unix number into the decoder to go the other way and see which moment it stands for.

Do Discord timestamps work in embeds and bot messages?

Yes. Discord’s developer reference lists timestamps under message formatting, so a bot can send the same <t:UNIX:STYLE> code in message content or an embed description, and each reader sees it in their own time zone. A timestamp in a username or a channel name is not formatted.

Why does the relative timestamp say “in 2 hours” for me but something else for a friend?

The R style counts from the moment each reader looks at the message, and Discord keeps it current while the message is on screen. Two people looking at different times, or with clocks set differently, can see different wording for the same event, but it always points at the same instant.

Which timestamp style should I use for an event announcement?

F (full date with weekday) is the clearest single choice for an event, because readers see the weekday as well as the date. Many servers pair it with R, for example “Starts <t:…:F> (<t:…:R>)”, so readers see both the date and how far away it is.

More markdown tools