How can i count total days of particular month


#1

Hi , to all .

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

eg. 2008-5-01

total days =31


#2

Time.days_in_month(1,2008)
=> 31


#3

MaD wrote:

Time.days_in_month(1,2008)
=> 31

Thanks.