example-date format is 01-jan-09 in QTP.How to convert this
format to 01-01-09?
Answer Posted / rajendra
Please find code below:
'get date
StrDay=Day(now)
'get Month
StrMon=Month(now)
'get Year
'Stryear=year(now)
' Assemble the Date according to the ur requirement ( ex:01-
01-2010)
ExpDate=StrDay&"-"&StrMon&"-"&'Stryear
msgbox ExpDate
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
How to execute a winrunner script in quicktest professional (qtp)?
How do client side image and server side image work?
What are benefits of qtp?
How you can delete excel file in qtp?
How to open a new test using quicktest professional (qtp)?
How to release all resources file from the QTP?
how can i pass a "automation script" as a parameter in a function give me need full suggestion thank inadvance
The hybrid framework can be implemented for any application. Is it true?
What is an optional step in qtp ?
What is the use of text output value in quicktest professional?
How to save your test using quicktest professional (qtp)?
hi guys, pls tell me for testing institution training hub, hitech city is best or not?
How do you know the location Id of an object if you know its index id?
How you can replace string in qtp?
when a test case is written how u test using qtp