Doctrine\DBAL\Platforms\SQLServerPlatform::getDateDiffExpression PHP Method

getDateDiffExpression() public method

{@inheritDoc}
public getDateDiffExpression ( $date1, $date2 )
    public function getDateDiffExpression($date1, $date2)
    {
        return 'DATEDIFF(day, ' . $date2 . ',' . $date1 . ')';
    }
SQLServerPlatform