Hi , to all .
Is there any idea in rails to count totoal days of month
eg. 2008-5-01
total days =31
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.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs