On 2 February 2012 09:55, amvis <vgrkrishnan@gmail.com> 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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment