Skip to content

$parseDate

$parseDate $parseDate will return the date/time for the given milliseconds

Usage

$parseDate[ms;type?]

Parameters

FieldTypeDescriptionRequired
msstringTime in ms you want to parse.true
type?stringThe type in which the parsed date will be returned in.false

Types

TypeFormat
time1 years, 1 week, 6 days, 8 hours, 16 minutes, 20 seconds
date1/1/2023, 8:16:20 AM

Example(s)

This will return your current date in the date format:

1
client.command({
2
name: "parseDate",
3
code: `
4
$parseDate[$dateStamp;date]
5
`
6
});