Comments

  1. I’m not sure whether this works in your case, but it is probably worth a try:

    $this->YourModel->find(‘all’, ‘conditions’ => array(‘Model.field between ? and ?’ => array(‘value1’, ‘value2’))));

    August 26, 2008 at 12:39 am |
  2. Colin:

    Great examples of date filtering with CakePHP. I especially like the “+1 day” business, didn’t know that existed before reading this!

    June 30, 2009 at 4:24 pm |
  3. thanks for this post – I’d been stuck on this for a few hours

    July 28, 2009 at 1:52 pm |
  4. Hamid:

    nice , thanks alot

    December 31, 2010 at 3:35 am |

Leave a Reply

You must be logged in to post a comment.