Doctrine\MongoDB\Aggregation\Stage\Operator::dateToString PHP Method

dateToString() public method

The format string can be any string literal, containing 0 or more format specifiers. The date argument can be any expression as long as it resolves to a date.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/dateToString/
See also: Expr::dateToString
public dateToString ( string $format, mixed | Expr $expression )
$format string
$expression mixed | Doctrine\MongoDB\Aggregation\Expr
    public function dateToString($format, $expression)
    {
        $this->expr->dateToString($format, $expression);
        return $this;
    }