Discord timestamp generator
Make a Discord timestamp <t:…> in seconds: pick a date, copy any of the 9 styles, or convert a Unix timestamp back to a date. Free, no account needed.
Pick a date and get all 9 Discord <t:…> tags with a preview, ready to paste. The tool also converts a Unix timestamp or an existing tag back to a date.
What is a Discord timestamp?
A Discord timestamp is a tag such as <t:1618953630:R> written in a message. The number is a Unix timestamp: the seconds elapsed since midnight UTC on 1 January 1970. The letter after the colon picks the display style.
Discord replaces the tag with a formatted date in each reader’s own language and time zone. An event posted for 8 PM in London shows as 3 PM for a member in New York, with no maths on their side. The preview above uses the language of this page and your browser’s time zone.
The 9 Discord timestamp styles
Taken from the Discord docs (Message Formatting, Timestamp Styles). With no letter, <t:1618953630> shows as style f.
| Style | Tag | What the reader sees | Format |
|---|---|---|---|
| t | <t:1618953630:t> | 4:20 PM | Short time |
| T | <t:1618953630:T> | 4:20:30 PM | Time with seconds |
| d | <t:1618953630:d> | 04/20/2021 | Short date |
| D | <t:1618953630:D> | April 20, 2021 | Long date |
| f | <t:1618953630:f> | April 20, 2021 at 4:20 PM | Long date and time (default) |
| F | <t:1618953630:F> | Tuesday, April 20, 2021 at 4:20 PM | Weekday, date and time |
| s | <t:1618953630:s> | 04/20/2021, 4:20 PM | Short date and time |
| S | <t:1618953630:S> | 04/20/2021, 4:20:30 PM | Short date and time with seconds |
| R | <t:1618953630:R> | 2 hours ago | Relative |
Examples for 1618953630 read in the Chicago time zone with US English, as in the Discord docs. Style R updates by itself in the client.
Getting the timestamp in bot code
- JavaScript: Math.floor(Date.now() / 1000) gives seconds; Date.now() alone gives milliseconds.
- discord.js: time(date, TimestampStyles.RelativeTime) builds the tag for you.
- Python: int(time.time()) or int(dt.timestamp()) (dt being a datetime).
- discord.py: discord.utils.format_dt(dt, style="R") returns the full tag.
Common mistakes
- Pasting milliseconds: a 13-digit number lands thousands of years in the future. Divide by 1000 (the tool detects and converts it).
- Mixing up t and T, or d and D: the letter is case-sensitive.
- Wrapping the tag in backticks: inside a code block Discord shows the raw tag instead of the date.
- Working out the hour by hand in the wrong time zone: start from your local date, as the tool does, and let Discord convert for each reader.
Frequently asked questions
How do I make a timestamp on Discord?
Type <t:TIMESTAMP:STYLE> in a message, with the Unix timestamp in seconds and a style letter. The generator turns a date into that number and gives the tag to copy for each style.
What does <t:…:R> mean?
R is the relative style: Discord shows “in 3 days” or “2 hours ago” and keeps the text updated. Handy for an event countdown.
Does every member see their own time?
Yes. Discord converts the tag to each reader’s time zone and language, based on their device and client settings.
Why does my date land in the year 50000?
The number is in milliseconds. Discord expects seconds: divide by 1000, or paste the value into the tool, which converts it.
Do timestamps work in bot embeds?
Yes in the embed description and field values. discord.js has the time() helper and discord.py has utils.format_dt() to build the tag.
Which style is used with no letter?
<t:TIMESTAMP> with no letter uses style f: long date and short time, for example “April 20, 2021 at 4:20 PM”.