Use the EXTRACT() function to access parts of a date. You can use EXTRACT() in projections, filtering, grouping and ordering.
EXTRACT() follows this syntax.
EXTRACT(DATE_PART FROM DATE_FIELD)
A date part can be one of the following values.
YEARQUARTERMONTHWEEKDAYHOURMINUTESECONDEPOCH_DAYEPOCHFISCAL_YEARFISCAL_QUARTERFISCAL_MONTHFISCAL_WEEK
note: If you query a date field that doesn't contain time information, it will return 0.