Interface Date
Hierarchy
- Date
Index
Methods
Methods
__@toPrimitive
-
Parameters
-
hint: "default"
Returns string
-
-
Converts a Date object to a string.
Parameters
-
hint: "string"
Returns string
-
-
Converts a Date object to a number.
Parameters
-
hint: "number"
Returns number
-
-
Converts a Date object to a string or number.
Parameters
-
hint: string
The strings "number", "string", or "default" to specify what primitive to return.
Returns string | number
A number if 'hint' was "number", a string if 'hint' was "string" or "default".
-
Generated using TypeDoc
Converts a Date object to a string.