'DAYOFMONTH:createdAt' => date('Y-m-d')
PHP ORM Where Clause - Date Only, Ignore Time
Collapse
X
-
PHP ORM Where Clause - Date Only, Ignore Time
How can I filter (using the EspoCRM PHP functions) a date-time field by the date only - ignoring the time part?
Code:$list = $this->getEntityManager()->getRepository($entityType)->where([ 'date(createdAt)' => date("Y-m-d") ]);
Last edited by blueprint; 01-23-2020, 08:08 AM.Tags: None
Leave a comment: