On 2 February 2012 09:55, amvis <[email protected]> wrote: > colin, thanks > > I got it from this > > :day_of_week =>u.bill_date.day,
Are you sure that does not give you the day of the month, I would have expected wday to give day of week, though since you still have not told use what type bill_date is then we cannot be sure. > :day_of_month => > (Date.new(Time.now.year,12,31).to_date<<(12-u.bill_date.month)).day , As I said above I would have expected day or mday to give the day of month Colin > :month_of_year =>u.bill_date.month, > :year => u.bill_date.year -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

