Hello,
How to convert months to days in ruby?
I want for example
6 months = total days of next 6 months from todays date.
How i do that?
Thanks,
Vikas
Hello,
How to convert months to days in ruby?
I want for example
6 months = total days of next 6 months from todays date.
How i do that?
Thanks,
Vikas
Vikas G. wrote:
Hello,
How to convert months to days in ruby?
I want for example
6 months = total days of next 6 months from todays date.
date_today=Date.today
date_next =Date.today.advance(:months=>6)
(date_next - date_now).to_i given result in days…
I don’t know how to do it, but see if Chronic might be of some use
http://chronic.rubyforge.org/
अà¤à¤¿à¤¨à¤µ
http://twitter.com/abhinav
On Wed, Sep 23, 2009 at 11:53 AM, Vikas G. <
Brijesh S. wrote:
Vikas G. wrote:
Hello,
How to convert months to days in ruby?
I want for example
6 months = total days of next 6 months from todays date.
date_today=Date.today
date_next =Date.today.advance(:months=>6)(date_next - date_now).to_i given result in days…
Thanks Brijesh.
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