Discord Timestamp Generator
Paste a code like <t:1700000000:R> into Discord and everyone sees the time in their own time zone. Pick a date and time below and copy the style you want. All 9 styles are here, including the newer short date and time ones.
In your time zone (UTC).
1796341920
Seconds since 1 January 1970 (UTC).
11:52 PM
Short time · <t:1796341920:t>
11:52:00 PM
Medium time · <t:1796341920:T>
12/3/26
Short date · <t:1796341920:d>
December 3, 2026
Long date · <t:1796341920:D>
December 3, 2026 at 11:52 PM
Long date, short time (default) · <t:1796341920:f>
Thursday, December 3, 2026 at 11:52 PM
Full date, short time · <t:1796341920:F>
12/3/26, 11:52 PM
Short date, short time · <t:1796341920:s>
12/3/26, 11:52:00 PM
Short date, medium time · <t:1796341920:S>
in 60 minutes
Relative · <t:1796341920:R>
// discord.js: a timestamp for a moment in your code
const unix = Math.floor(date.getTime() / 1000);
await interaction.reply(`Event starts <t:${unix}:F> (<t:${unix}:R>)`);
# discord.py
unix = int(date.timestamp())
await interaction.response.send_message(f"Event starts <t:{unix}:F> (<t:{unix}:R>)")How it works
The number is a Unix timestamp in seconds. Discord swaps the whole <t:…> tag for a date shown in each reader’s own time zone and language, so the previews here only show how it looks for you. Leave the style letter off and Discord uses f.
Good to know
- Use seconds, not milliseconds. JavaScript’s Date.now() is in milliseconds, so divide by 1000.
- The relative style (R) keeps updating on its own, which suits countdowns to events and restarts.
- Timestamps work in normal messages and in an embed’s description and fields.
Bot goes offline when you close your laptop? Run it 24/7 from £1 a month, with Node.js, Python and more, a token field, Git deploy and auto-restart. Try it free for 48 hours, no card required.
See Discord bot hosting →Want your bot posting these around the clock?
Always online from £1/mo, token field, Git deploy, auto-restart, and a free trial. Try it free for 48 hours, no credit card required.
Stuck on your bot?
Ask in our Discord - we help with hosting questions whether or not you host with us.