Forum: Ruby on Rails comparing dates

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
36b16df88c6edd79f2e28392741d9258?d=identicon&s=25 Mecharek Massinissa (massi)
on 2007-06-15 11:15

i have to dates :

@date_1 =

@date_2 =

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 .?????

7ccb60b4e98db8841edc106c8dbf2789?d=identicon&s=25 Armitage (Guest)
on 2007-06-15 12:44
(Received via mailing list)
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

then comparing the integers

Hope that helps

On Jun 15, 10:15 am, Mecharek Massinissa <rails-mailing-l...@andreas-
This topic is locked and can not be replied to.