Forum: Ruby on Rails How can i count total days of particular month

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Af10464d988bde1b15b1a324237bad84?d=identicon&s=25 Dharmdip Rathod (dharmdip)
on 2009-02-19 09:14
Hi , to all .

Is there any idea in rails to count totoal days of  month

eg.  2008-5-01

total days =31
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-02-19 09:56
(Received via mailing list)
>> Time.days_in_month(1,2008)
=> 31
Af10464d988bde1b15b1a324237bad84?d=identicon&s=25 Dharmdip Rathod (dharmdip)
on 2009-02-19 09:57
MaD wrote:
>>> Time.days_in_month(1,2008)
> => 31

Thanks.
This topic is locked and can not be replied to.