How to check a date against today


#1

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?


#2

On 10-jun-2006, at 23:39, John H. 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