Forum: Ruby on Rails How to check a date against today

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
57d2594584b9c4e2b6fb2059968b3d84?d=identicon&s=25 John Henderson (Guest)
on 2006-06-10 23:39
I'm looking for a function which produces the current date

eg.    if account.expiry_date < getdate

'getdate' doesn't seem to work.

anyone know what does?
A2b2f4ee23989dc68529baef9cbddcd6?d=identicon&s=25 Julian 'Julik' Tarkhanov (Guest)
on 2006-06-11 00:31
(Received via mailing list)
On 10-jun-2006, at 23:39, John Henderson wrote:

>
> I'm looking for a function which produces the current date
>
> eg.    if account.expiry_date < getdate
>
> 'getdate' doesn't seem to work.
>
> anyone know what does?

Please examine the standard library documentation

account.expiry_date < Date.today

--
Julian 'Julik' Tarkhanov
please send all personal mail to
me at julik.nl
This topic is locked and can not be replied to.