How to create timestamps

But how Do I make this into a timestamp
.addFields({ name: "Date Created", value: `${guild.createdAt}`, inline: true})
.addFields({ name: "Date Created", value: `${guild.createdAt}`, inline: true})
This is for server info and I need it to show the date and time in a timestamp
4 Replies
d.js toolkit
d.js toolkit11mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Post the full error stack trace, not just the top part! - Show your code! - Explain what exactly your issue is. - Not a discord.js issue? Check out #useful-servers. - Issue solved? Press the button!
d.js docs
d.js docs11mo ago
guide Popular Topics: Timestamps read more
X_DigitalNinja
X_DigitalNinja11mo ago
14.11.10
d.js docs
d.js docs11mo ago
method time Formats a date into a short date-time string.