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
CodingWithJamalOP2y 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
242y ago
you should use the date formatter
CodingWithJamal
CodingWithJamalOP2y ago
okay thanks
Want results from more Discord servers?
Add your server