Formatting Dates

let ratelimit = manager.acquire(interaction.guild.id);

// reply -> String
`Please try again in ${new Date(ratelimit.expires - ratelimit.remainingTime)}`
let ratelimit = manager.acquire(interaction.guild.id);

// reply -> String
`Please try again in ${new Date(ratelimit.expires - ratelimit.remainingTime)}`
How do I format the date properly?
Solution:
you should use the date formatter
Jump to solution
3 Replies
CodingWithJamal
CodingWithJamalOP3y ago
GitHub
utilities/packages/ratelimits at main · sapphiredev/utilities
Common JavaScript utilities for Sapphire Projects. Contribute to sapphiredev/utilities development by creating an account on GitHub.
Solution
24
243y ago
you should use the date formatter
CodingWithJamal
CodingWithJamalOP3y ago
okay thanks

Did you find this page helpful?