> 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
*
*
*
*
*Can i use this same way to get the day, month, year from the default field 
created_at..**?*
*
*
*i mean *:day_of_week =>u.created_at.day
*
*
*i just tried that but got some error .day.. i think created_at field with 
timestamp. so that will be the problem...?*
*
*
*
*
*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/-/HmwFCR7j4p4J.
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.

Reply via email to