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?
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?
example 12.06.2006). This is working well. Now, what does I have to do
Michael G.
Fridrich
There are so many ways people writes a date so it is to be expected to
have problem if you aloud free form input.
If datums have a time component the things become even more
interesting.
Parsing the user input is always a tricky business.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.