Google News
logo
MongoDB - Quiz(MCQ)
Which of the following returns the hour for a date as a number between 0 and 23?
A)
$hour
B)
$minute
C)
$seconds
D)
All of the above

Correct Answer :   $hour


Explanation : The argument in hour statement can be any expression as long as it resolves to a date.

Advertisement