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.
| Style | Code to paste in Discord | Preview (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.
| Style | Discord's name | Example |
|---|---|---|
t | Short Time | 16:20 |
T | Medium Time | 16:20:30 |
d | Short Date | 20/04/2021 |
D | Long Date | April 20, 2021 |
f (default) | Long Date, Short Time | April 20, 2021 at 16:20 |
F | Full Date, Short Time | Tuesday, April 20, 2021 at 16:20 |
s | Short Date, Short Time | 20/04/2021, 16:20 |
S | Short Date, Medium Time | 20/04/2021, 16:20:30 |
R | Relative Time | 4 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
| Problem | Cause | Fix |
|---|---|---|
| The date shows as 1970 or year 57000 | Milliseconds 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 hours | The time was entered in the wrong timezone | Set the timezone above to the zone the event is announced in, then copy. |
| The code shows as plain text | It is inside backticks, a typo in the style letter, or there is a space | Paste 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
- Discord Text Formatter: write a message with bold, spoilers, headers and code blocks and preview it before you send.
- Discord Colored Text Generator: build an
ansicode block with colored text. - Discord Markdown cheat sheet: every formatting option in one page.
- Discord developer docs: message formatting (first-party reference).