How can i count total days of particular month

Hi , to all .

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

eg. 2008-5-01

total days =31

Time.days_in_month(1,2008)
=> 31

MaD wrote:

Time.days_in_month(1,2008)
=> 31

Thanks.