Rabii MOUALI
Rabii MOUALI
Hi, Date fields are not string, it's an object. For example, you can do query like this: $query->whereLessThanOrEqualTo('date_start', array("__type"=>"Date","iso"=>date('Y-m-d\Th:i:s'))); That's work, but perhaps need to create specific where for Date...
public function whereBetweenOrEqualDates($key, $startDate, $endDate){ if(isset($key) && isset($startDate) && isset($endDate)){ $this->_query[$key] = array( '$gte' => $startDate, '$lte' => $endDate ); } call him for created_at without time: $startDate = array("__type"=>"Date","iso"=>date('Y-m-d\T0:0:0');...