How do I query in cakephp, if the date in the field 'created' of model 'listings' is more than 2 wee

Posted by joy on Stack Overflow See other posts from Stack Overflow or by joy
Published on 2010-05-24T05:32:12Z Indexed on 2010/05/24 5:41 UTC
Read the original article Hit count: 244

Filed under:
|
|

I have a model 'listing' with a field 'created' which is in a datetime format. I need to list in a view all listings that were created over 2 weeks ago. An extra thing if possible is to somehow mark them as expired.

This is in cakePhp 1.27

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql