DatePart
Extracts a part from a datetime value as a numeric.
Method Signature
Arguments
Argument
Type
Required
Description
Default
datepart
string
true
The part of the date to extract.
date
any
true
The date to extract the part from.
timezone
string
false
An optional, explicit timezone to apply to the date.
Examples
Related
Last updated