

InterviewSolution
Saved Bookmarks
1. |
Which of the following returns year for particular date?(a) $year(b) $yearday(c) $syearofmonth(d) None of the mentionedI got this question in homework.My question is from Pipeline Operators topic in division Aggregation Concepts and Aggregation Mechanics of MongoDB |
Answer» RIGHT ANSWER is (a) $year To explain: $year RETURNS the year for a date as a NUMBER (e.g. 2014). |
|