Discord Timestamp Generator (All 9 Styles)

Pick a date and time and copy a Discord timestamp code like <t:1763400000:F>. Everyone who reads the message sees it in their own timezone and language.

StyleCode to paste in DiscordPreview (your locale)
Default
no style
<t:1796148000>December 1, 2026 at 6:00 PM
Short time
:t
<t:1796148000:t>6:00 PM
Medium time
:T
<t:1796148000:T>6:00:00 PM
Short date
:d
<t:1796148000:d>12/01/2026
Long date
:D
<t:1796148000:D>December 1, 2026
Long date, short time
:f
<t:1796148000:f>December 1, 2026 at 6:00 PM
Full date, short time
:F
<t:1796148000:F>Tuesday, December 1, 2026 at 6:00 PM
Short date, short time
:s
<t:1796148000:s>12/01/2026, 6:00 PM
Short date, medium time
:S
<t:1796148000:S>12/01/2026, 6:00:00 PM
Relative
:R
<t:1796148000:R>in 0 seconds

Previews use your browser's language (en-US). Discord formats the same code with each reader's own language and timezone, so a reader in the UK sees 20/04/2021 where a US reader sees 04/20/2021. The relative style updates live in Discord.

How Discord timestamps work

A Discord timestamp is a Unix time in seconds wrapped in <t: and >. Discord's developer documentation lists the syntax as <t:TIMESTAMP> or <t:TIMESTAMP:STYLE>, and says the timestamp is shown "in the user's timezone and locale". That is the whole point: post <t:1763400000:F> for an event and nobody has to convert time zones.

It works in normal messages, in bot messages and in embeds. It does not work inside a code block or inline code, because Discord shows those characters literally.

All timestamp styles

These are the styles in Discord's developer docs (checked November 17, 2026). The example column is Discord's own, for April 20, 2021 at 16:20:30 in an English (UK style) locale.

StyleDiscord's nameExample
tShort Time16:20
TMedium Time16:20:30
dShort Date20/04/2021
DLong DateApril 20, 2021
f (default)Long Date, Short TimeApril 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

s and S are newer than most guides you will find, so an older cheat sheet may only list seven styles. If you leave the style off, Discord uses f.

Common mistakes

ProblemCauseFix
The date shows as 1970 or year 57000Milliseconds instead of seconds (JavaScript's Date.now() is in milliseconds)Divide by 1000. This tool also accepts a 13-digit millisecond value and converts it.
The time is off by a few hoursThe time was entered in the wrong timezoneSet the timezone above to the zone the event is announced in, then copy.
The code shows as plain textIt is inside backticks, a typo in the style letter, or there is a spacePaste it as normal text, exactly <t:SECONDS:STYLE>.

Making one by hand or in a bot

Any language that can get Unix seconds can build the code:

// JavaScript
const code = `<t:${Math.floor(new Date('2026-12-01T18:00:00Z').getTime() / 1000)}:F>`

# Python
import datetime
code = f"<t:{int(datetime.datetime(2026, 12, 1, 18, 0, tzinfo=datetime.timezone.utc).timestamp())}:F>"

# Shell (GNU date)
echo "<t:$(date -d '2026-12-01 18:00 UTC' +%s):R>"

More Discord tools