I am still new to all of this but it might be worth a try converting
them to be integers first and then carryinag out the comparison
ie. something like time.now.to_i
then comparing the integers
Hope that helps
On Jun 15, 10:15 am, Mecharek Massinissa <rails-mailing-l...@andreas-
s.net> wrote:> hello,
>
> i have to dates :
>
> @date_1 = date.new()
>
> @date_2 = date.new()
>
> i want to compare theses two dates
>
> i have tried
>
> @date_1 > @ date_2 but every time it returns me FALSE
>
> is there a solution .?????
>
> thanks
>
> --
> Posted viahttp://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---