Doctrine\DBAL\Platforms\AbstractPlatform::getDateDiffExpression
Calculate the difference in days between the two passed dates.
Computes diff = date1 - date2
Signature
public function getDateDiffExpression(string
$date1,
string
$date2 )
Parameters
$date1
— string$date2
— string
Returns
- string