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? -- Posted via http://www.ruby-forum.com/.
Julian ''Julik'' Tarkhanov
2006-Jun-10 22:29 UTC
[Rails] How to check a date against today
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