I've setteled for the following and works great!

@orders=Order.find(:all,:conditions => ['created_at BETWEEN "?" AND
"?"',
start_date.strftime('%Y-%m-%d %H:%M:%S'), end_date.strftime('%Y-%m-%d
%H:%M:%S')])

I am using 1.8 but somehow just start_date and end_date without 
formatting did not work.

BIG THANKS TO YOU ALL
Katsuo
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to