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