Last updated 1 month ago
Was this helpful?
Extracts a part from a datetime value as a numeric.
DatePart(datepart=[string], date=[any], timezone=[string])
datepart
string
true
The part of the date to extract.
date
any
The date to extract the part from.
timezone
false
An optional, explicit timezone to apply to the date.