List Info

Thread: Re: command to get a future date




Re: command to get a future date
user name
2007-04-23 09:24:47
Use ruby's date class.

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

-Charley

On 4/23/07, Maloy kanti debnath < forum-watir-usersopenqa.org"> forum-watir-usersopenqa.org> wrote:
hi people,
&nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;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-generalrubyforge.org">Wtr-generalrubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )