The DatePart function extracts the specified date part from a date value.
DatePart(precision, date, [timezone])
The function has the following arguments:
DatePart("year", [Invoice Date])
Extracts the year from each value in the column of invoice dates.
DatePart("week", Date("2007-01-10 10:00:00"))
Returns 2, the week number of this date; weeks in Analytics Pro start on Sunday, by default.
The DatePart function returns the following values for the Date column: