How to Add Dynamic Timestamps in Discord Chat
In this article
To add a dynamic timestamp in Discord, type <t:UNIX_TIMESTAMP> in your message. The timestamp will automatically display in each viewer's local time zone and update if Discord's format changes. You can customize the format with flags like <t:UNIX_TIMESTAMP:R> for relative time. No bots or special permissions are needed—this works in any chat, DM, or server channel.
What You'll Need
- A Discord account (desktop, web, or mobile app)
- A UNIX timestamp (seconds since January 1, 1970 UTC) for the moment you want to display
- Access to a channel where you can type messages
Step-by-Step
- Get a UNIX timestamp for your desired time. Use an online converter like
epochconverter.comor rundate +%sin a terminal (Linux/macOS) orGet-Date -UFormat %sin PowerShell (Windows). Make sure you get the timestamp in seconds, not milliseconds. - Open Discord and go to the chat box in any server channel, DM, or group DM where you have permission to send messages.
- Type the timestamp code in the format
<t:UNIX_TIMESTAMP>. ReplaceUNIX_TIMESTAMPwith your actual number. For example:<t:1710000000>. - Add a format flag (optional) to change how the timestamp appears. Append a colon and a letter after the number:
<t:1710000000:R>. The flags are:t(short time),T(long time),d(short date),D(long date),f(short date/time, default),F(long date/time), andR(relative, e.g., "in 3 hours"). - Send the message. Discord will automatically render the code as a clickable timestamp. Clicking it shows the full date/time in your local timezone.
- Test with a future or past time to see how it displays. For a relative time, use
R—it will show something like "in 2 days" and update live as time passes.
Common Mistakes
- Using milliseconds instead of seconds. Most online tools give milliseconds by default; Discord expects seconds. Divide by 1000 if needed.
- Forgetting the angle brackets. The code must be wrapped in
<and>exactly. Without them, Discord shows the raw text. - Using a space after the colon.
<t:123:R>works, but<t:123: R>does not. No spaces anywhere inside the brackets. - Typing the timestamp as a date string. Discord does not accept
<t:2024-03-10>; it must be a UNIX number. - Assuming it updates across time zones. It does—each viewer sees it in their own timezone, but the number you type is fixed in UTC.
Tips
- Use
Rfor event reminders (e.g., "in 30 minutes") so people see a live countdown. - For a clean look, use
f(default) which shows like "March 10, 2024 3:00 PM"—good for scheduled events. - You can combine multiple timestamps in one message, but each needs its own
<t:...>code. - On mobile, the timestamp appears as a link; tap it to see the full date in your timezone.
- If you need the current UNIX timestamp quickly, type
/timestampin Discord's slash command box (if your server has that command enabled) or use a bot like Dyno—but the manual method works everywhere.
Troubleshooting
If the timestamp shows as plain text (e.g., <t:123>), check for typos—missing brackets, extra spaces, or a non-numeric value. Also ensure you are not in a code block (backticks) which disables formatting.
If it shows the wrong time, verify your UNIX timestamp is in seconds. A common error is copying a timestamp from a website that includes milliseconds (13 digits instead of 10). Reconvert with a tool that explicitly says "seconds."
If the relative time (R) does not update, it should update automatically every minute. If it seems stuck, try re-sending the message or check your Discord client is up to date.
If the timestamp is not clickable, that is normal on some older clients; the text still displays correctly. Update Discord to the latest version to get full functionality.
If nothing works after trying all steps, restart Discord (close and reopen) or sign out and back in. If you are in a server, confirm you have permission to send messages in that channel.
Frequently Asked Questions
Can I use a timestamp for a date in the past?
Yes, any UNIX timestamp works—past, present, or future. It will display as that exact moment in each viewer's timezone.
Do timestamps work in embeds or bot messages?
Yes, timestamps work in any message, including those sent by bots, as long as the bot includes the <t:...> code. However, you cannot manually edit a bot's message to add one.
Can I make a timestamp that always shows the current time?
No, the timestamp is fixed at the moment you type. For a live "now" indicator, use the R flag with a timestamp a few seconds in the future—it will show "in a few seconds" and then update to "now."
Does the timestamp work in voice chat or threads?
It works in any text channel, including thread messages. It does not appear in voice chat itself, but you can post it in the text chat of a voice channel.
Can I use the timestamp in a server name or channel name?
No, the <t:...> syntax only works in message content, not in server or channel names.
Is there a way to convert a date to UNIX timestamp without a website?
Yes, on Windows PowerShell: [DateTimeOffset]::Now.ToUnixTimeSeconds(). On macOS/Linux: date +%s. For a specific date, use date -d "2024-03-10 15:00" +%s (Linux) or Get-Date -Date "2024-03-10 15:00" -UFormat %s (PowerShell).