Introduction
The EXTRACT function helps you get specific parts like year, month, or day from a date or time. It makes it easy to work with dates by focusing on just the part you need.
You want to find the year someone was born from their birthdate.
You need to get the month from a sales date to group sales by month.
You want to know the day of the week for a meeting date.
You want to calculate the hour from a timestamp to analyze busy hours.
You want to extract the quarter from a date to report quarterly results.