日付の範囲指定

scheduled_dateがdatetime型の場合に
1ヶ月の予定一覧を引っ張ってくるには以下のように
Time型をto_dateくっつけて範囲指定しないと
へんちくりんな範囲が返ってくるので注意。

today=Time.now
@current_month=today.beginning_of_month
@my_schedules=@account.schedules.find(:all,:conditions=>
      ["scheduled_date >= ? and scheduled_date < ?",
      @current_month.to_date,@current_month.next_month.to_date])