Skip to main contentSkip to solution

Which function extracts the year value from a date?

Solution

✅ Correct Option: 3

The YEAR() function takes a date and returns only its year part. For example, YEAR("2024-05-17") returns 2024.


Option 4: MONTH() is the sibling function, but it returns the month number (1 to 12), not the year.

Option 1: CURRENT() is not a standard date-extraction function. Current date and time are normally obtained with functions like NOW() or CURDATE().

Option 2: DAY-YEAR() is not a valid function name.

DAY(), MONTH() and YEAR() each extract one part of a date.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question