Google News
logo
MongoDB - Quiz(MCQ)
__________ returns the day of the year for a date as a number between 1 and 366.
A)
$dayOfWeek
B)
$dayOfYear
C)
$dayofWeekend
D)
None of the above

Correct Answer :   $dayOfYear


Explanation : The $dayOfYear expression has the following syntax:{ $dayOfYear: }.

Advertisement