Use ruby's date class.

d = Date.today
d = d + 7
puts d.day()

-Charley

On 4/23/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote:

hi people,
              In my application i have a calander and i need to select a
that is 7 days from today (ie 30th April) . Now the question is ..... Is
there any command by which i can directly get this future date ? ...... if
there is no direct command, then i will have to try writing a piece of code,
which might be quite tediou, for this.

thanks in advance,
Maloy
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to