Skip to main content

Black Week: 10% extra from 3 months paid upfront, no code. Until Monday, 23:59. 2 days left.

All deals

Discord Timestamp Generator

Pick a date and time, copy the code you need and paste it into Discord. Everyone who reads the message sees the time in their own time zone. Handy for server restarts, events and maintenance windows.

Point in time

Your device’s time zone is preselected. Planning for another region? Change it here.

Quick set

Paste seconds, milliseconds or a code like <t:1767225600:R> to read it. Date and time update to match.

Codes to copy

FormatWhat it looks likeCode
Short time –<t:0:t>
Time with seconds –<t:0:T>
Short date –<t:0:d>
Long date –<t:0:D>
Date and time (default) –<t:0:f>
Weekday, date and time –<t:0:F>
Relative –<t:0:R>

The preview uses this page’s language and your device’s time zone. In Discord, every reader sees their own time zone and language.

In bot code

If your bot writes times into messages itself, all it needs is the Unix seconds. discord.js and discord.py ship helpers for it:

discord.js
const { time, TimestampStyles } = require('discord.js');
time(new Date(0), TimestampStyles.RelativeTime);
discord.py
import datetime, discord
discord.utils.format_dt(datetime.datetime.fromtimestamp(0, datetime.timezone.utc), style='R')

Is your bot still running on your own computer? With us it runs around the clock.

See bot hosting

Frequently asked questions

How does a Discord timestamp work?

The code looks like <t:seconds:format>. The number is the seconds since 1 January 1970 (UTC), the letter after it picks the display style. Discord converts the time only when it shows the message, so every reader sees their own local time.

Do I have to convert the time for other time zones?

No. You enter the time once in your time zone and Discord shows it to every reader in theirs. Someone reading in New York sees 2:00 PM for a restart at 8:00 PM German time.

Where do the codes work?

In regular messages and in the description and field values of embeds. In channel names, nicknames and embed titles the code stays plain text.

What does the R format do?

R shows the time relative to now, such as “in 3 hours” or “2 days ago”. Discord keeps it up to date on its own, so you never have to edit the message.

Continue on your server

Open your server dashboard if needed. Confirm changes to settings and worlds there yourself.