[Wtr-general] command to get a future date

Charley Baker charley.baker at gmail.com
Mon Apr 23 10:24:47 EDT 2007


Use ruby's date class.

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

-Charley

On 4/23/07, Maloy kanti debnath <forum-watir-users at openqa.org> 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 at rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/wtr-general/attachments/20070423/b7c21ddf/attachment-0001.html 


More information about the Wtr-general mailing list