From: Michael Guterl Date: 2008-10-11T22:26:35+09:00 Subject: Re: Calc Days from Date On Sat, Oct 11, 2008 at 7:07 AM, wrote: > Hello. > I am Ruby Beginner. Now I am trying to write a code, that calcs days > between two dates. > > I ask the user for a date. Then the User type a german Date (for > example 12.06.2006). This is working well. Now, what does I have to do > to calc the days between now and the date which has the user give in? > > Thanks for your help. > tday = Date.today bday = Date.new(2009, 4, 30) days = (bday - tday).to_i => 201 HTH, Michael Guterl