$formatDate
Converts milliseconds to a readable date/time.
Usage
$formatDate[milliseconds;format]
Breakdown
milliseconds
- The milliseconds to convert.
format
- The format of the date.
Example Formats
MMMM Do YYYY, h:mm:ss a
// June 5th 2021, 11:35:22 am
dddd
// Saturday
MMM Do YY
// Jun 5th 21
empty
// 2021-06-05T11:37:54-04:00
Example
bot.command({
type: "command",
name: "example",
code: `Creation Date: $formatDate[$creationDate[$mentioned[1;yes]];MMMM Do YYYY, h:mm:ss a]`
})
Last updated
Was this helpful?