dayOfWeek() public méthode

The argument can be any expression as long as it resolves to a date.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfWeek/
public dayOfWeek ( mixed | self $expression )
$expression mixed | self
Exemple #1
0
 /**
  * Returns the day of the week for a date as a number between 1 (Sunday) and
  * 7 (Saturday).
  *
  * The argument can be any expression as long as it resolves to a date.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/dayOfWeek/
  * @see Expr::dayOfWeek
  * @param mixed|Expr $expression
  * @return self
  */
 public function dayOfWeek($expression)
 {
     $this->expr->dayOfWeek($expression);
     return $this;
 }