title: Yii dataprovider criteria for today's date
body: <p>I want to display only the data in the dataprovider for today's date only. $data->timedate is the appointment date. If it is equal to the current date, display it. The following code does not work.</p>
  
  <pre><code>//today appointments dataprovider
          $taProvider=new CActiveDataProvider('Appointments',array(
                  'sort'=&gt;array(
                      'defaultOrder'=&gt;'datetime ASC',
                      ),
                  'criteria'=&gt;array(
                          'condition'=&gt;'cId=:cId',
                          'params'=&gt;array(':cId'=&gt;Yii::app()-&gt;user-&gt;id),
                          'condition'=&gt;$data-&gt;timedate = date('Y-m-d'),
  
  
                      ),    
              ));
  </code></pre>