Which function extracts the year value from a date?
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.
Related questions:
2025: 27 May Shift 2
2025: 22 May Shift 1
2025: 20 May Shift 1
2025: 20 May Shift 1