Home / CSE MCQs / MongoDB MCQs :: Discussion

Discussion :: MongoDB MCQs

  1. Which of the following returns the hour for a date as a number between 0 and 23 ?
  2. A.
    $minute
    B.
    $hour
    C.
    $seconds
    D.
    All of the mentioned

    View Answer

    Workspace

    Answer : Option B

    Explanation :

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


Be The First To Comment