Hi Yanni
Date.today.to_s will give you what you want for today. “2007-08-31”
How about trying:
@items = Item.find(:all, :conditions => [‘expiration >= ?’,Date.today]) - thats if your date column is a datetime field.
Regards Ivor
Hi Yanni
Date.today.to_s will give you what you want for today. “2007-08-31”
How about trying:
@items = Item.find(:all, :conditions => [‘expiration >= ?’,Date.today]) - thats if your date column is a datetime field.
Regards Ivor