1.

__________ returns the day of the year for a date as a number between 1 and 366.(a) $dayofWeekend(b) $dayOfWeek(c) $dayOfYear(d) None of the mentionedThis question was posed to me during an internship interview.I would like to ask this question from Pipeline Operators topic in portion Aggregation Concepts and Aggregation Mechanics of MongoDB

Answer» RIGHT option is (C) $dayOfYear

Best explanation: The $dayOfYear expression has the FOLLOWING syntax:{ $dayOfYear:}.


Discussion

No Comment Found

Related InterviewSolutions