how to get year from a date time in sql code example Example: print year of a date sql SELECT EXTRACT(YEAR FROM CURRENT_DATE)