How to use the timestamp generator
- Choose the date and time above. The tool starts from your device's time zone.
- Look through the styles and find the one that fits your message.
- Copy the tag and paste it into Discord. It looks like code in the message box and turns into a readable date after you send it.
What a Discord timestamp does
A Discord timestamp is a small tag with the form <t:UNIX:FORMAT>. UNIX is the number of seconds since January 1, 1970 in UTC, and FORMAT is one letter that sets the display style. The tag stores one exact moment, not a clock reading, so Discord can show it in each viewer's own time zone and language. If you write "8 PM" in a server with members in Moscow, Tel Aviv and New York, two of those groups have to do the maths. With a tag, nobody does.
These are the seven common styles. The output below is Discord's own documentation example; the real result follows each viewer's language and settings.
- t, short time: 16:20
- T, long time: 16:20:30
- d, short date: 20/04/2021
- D, long date: April 20, 2021
- f, date and time: April 20, 2021 at 16:20
- F, full date and time: Tuesday, April 20, 2021 at 16:20
- R, relative time: 4 years ago, or in 2 hours
So <t:1793966400:R> counts down to a moment, and <t:1793966400:F> spells it out in full. If you leave the letter out, Discord uses f.
Where it works and where it does not
Timestamps work in messages, which is where most people use them: event announcements, game nights, giveaways and deadlines. Bots can also use them in the text of embeds, such as the description and field values. No bot is needed for a normal message, because the tag is plain text that Discord renders.
They do not work where Discord does not process formatting, such as nicknames. A tag also cannot change itself: if your event moves, edit the message with a new tag. Planning something for your members? Our list of Discord event ideas has plenty to fill the calendar, and you can show it off on the TopGuilds events page.
Does the timestamp adjust for daylight saving time?
Yes. The tag stores a single moment, and each viewer's device works out their local time for that date, including any clock change.
Why does my timestamp show the wrong year?
The number is probably in milliseconds. Discord expects seconds, which is a 10-digit number for current dates. If your number has 13 digits, drop the last three.
Does relative time update on its own?
Yes. The R style changes as time passes, so "in 2 hours" becomes "in 1 hour" without any edit. That makes it the best style for countdowns.
Are there more than seven styles?
Discord's developer documentation also lists s and S, which show a short date with a time. The seven above are the ones most people need, and older guides often list only those.
Can I use it without a bot?
Yes. Any member who can send messages can paste a tag. You can also pair it with colored text for announcements, though a timestamp inside a code block stays as raw text, so keep the two apart.