2014-01-07 61 views
0

我怎麼能只對當天(今天)過濾結果使用推動有今天的日期作爲時間戳在MySQL數據庫中的所有行:行走過濾

$checkIfMaxNrOfPointsTransactionsForToday = PointsTransactionsQuery::create()     
      ->filterByTimeCreated(array('max' => 'today'))    
      ->filterByUserId($this->userId) 
      ->count(); 

感謝

回答

0

Here一個答案,我發現有用。只需在當前日期內輸入最小值和最大值。