Consider the following two statements (A) and (B).
(A). MONTHNAME("2025-11-29");
(B). MONTH("2025-11-29");
What is the output of above two statements?
Consider the following two statements (A) and (B).
(A). MONTHNAME("2025-11-29");
(B). MONTH("2025-11-29");
What is the output of above two statements?
Solution
✅ Correct Option: 2
MONTHNAME() returns the full name of the month from a date, so MONTHNAME("2025-11-29") gives November.
MONTH() returns the month as a number from 1 to 12, so MONTH("2025-11-29") gives 11.
Option 1: swaps the two outputs; the name comes from MONTHNAME(), not MONTH().
Option 3: MONTHNAME() returns the full name "November", not the abbreviation "Nov".
Option 4: 29 is the day, which DAY() or DAYOFMONTH() would return, not MONTH().
Related questions:
2025: 22 May Shift 1
2026: 23 May Shift 2
2026: 21 May Shift 1