Thursday, February 2, 2012

Re: [Rails] date problem in ruby

colin, thanks 

I got it from this

   :day_of_week =>u.bill_date.day,
    :day_of_month => (Date.new(Time.now.year,12,31).to_date<<(12-u.bill_date.month)).day ,
    :month_of_year =>u.bill_date.month,
    :year => u.bill_date.year


Thank you
vishnu

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/71FjCgn-rsgJ.
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.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate