Hi Vijay
This is a Ruby method, not specific to Watir:

Time.now.strftime("%d-%b-%Y")


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of vijay
Sent: 29 January 2007 01:51 PM
To: wtr-general@rubyforge.org
Subject: [Wtr-general] how to make Watir output the current system
datethrough a command

Hello people,

I do not know what command to use to make Watir output the current
system date and to convert it into the desired format, dd-mon-yyyy
(22-Jan-2007).  I want the current system date inorder to check whether
a particular field present in the application has the currrent date or
not.  If anybody could help me, I would be thankful.

Thanks, in Advance
Vijay
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6308&messageID=17750#17750
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general
**************************************************************************************************************************
Everything in this e-mail and attachments relating to the official business of 
MultiChoice Africa is proprietary to 
the company. Any view or opinion expressed in this message may be the view of 
the individual and should not automatically 
be ascribed to the company.  If you are not the intended recipient, you may not 
peruse, use, disseminate, distribute or 
copy this message. If you have received this message in error, please notify 
the sender immediately by email, facsimile 
or telephone and destroy the original message.
**************************************************************************************************************************
_______________________________________________
Wtr-general mailing list
Wtr-general@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to