From: Taneal Bhandari Date: 2009-04-22T09:22:29+09:00 Subject: Re: comparing date problem Rob Biedenharn wrote: > :conditions => [ 'event_date > ? OR (event_date = ? AND event_time > > ?)', > now.to_date, now.to_date, now.strftime("%H:%M:%S") ] > > depending on what the format of event_time actually is, of course. > > -Rob > > Rob Biedenharn http://agileconsultingllc.com > Rob@AgileConsultingLLC.com Cool! Thanks! I'm actually home now so will give it a go in the morning. But it looks like it should work. I believe that event_time is the same format as what you have in your code. Thanks again! Will update post in morning! -- Posted via http://www.ruby-forum.com/.