select year from database as datetime
- From: misiek <michaelaugustyniak@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 11:37:55 -0600
I got in database datetime field I need to pick all data from database where date is this year sample
database datetime a 2006-01-30 00:00:00 this date is this year 2006 2005-01-30 00:00:00 is not
sample
year = 2006 time_in -> looks now like that 2006-01-30 00:00:00
@hours = Hour.find(:all, :conditions => " time_in = " + year )
so I need do like : time_in.year = year heh but it does not work of course
any one please ...?? .
- Prev by Date: Re: [QUIZ] Port a Library (#64)
- Next by Date: Re: One-Click Ruby Installer 184-16 preview2 is available!
- Previous by thread: "[BUG] Segmentation fault" on import script.
- Next by thread: WIN32OLE extension using in/out SAFEARRAYs (Matlab interface)
- Index(es):