is it possible to change the date format like MM/DD/YY
into DD/MM?YY through script in QTP

Answer Posted / guru

DD = Day(now)
If Len(DD) = 1 then
DD = "0" & DD
End If

MM = Month(now)
If Len(MM) = 1 then
MM = "0" & MM
End If

YY = Year(now)
YY = right(YY,2)

Date_Format = DD & "/" & MM & "?" & YY

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can i test an application like Google Earth.In my application data will be fetched from a oracle database based upon which graphs are generated..so these all are dynamic..how can i use qtp here..alongwith that how can i test the map generated by a satellite just like google earth..

1728


Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?

1236


I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",

1362


How to Open FireFox using descriptive programing? If my question is not clear, i will give an Example To Open Internet Explorer, We use Set IE = CreateObject(InternetExplorer.Application) IE.Navigate "www.yahoo.com In the same i need to open yahoo.com in firefox. Can any one tell me what is the server name of firefox to create an object

2534


How can we import into Excel "Details" ,"Result" ,"Time" parameters from within a Results Report which is generated after a Run error when a script is executed in QTP? Refer E.g below Status Functionality Description RunDate Fail Login User should be able to Login 12/3/2007 StartTime EndTime Details* 1:31:58 PM 1:32:29 PM (this one i want)

1535






What is difference between shared and local object repository?

593


In what occasion we can specify global sheet and action sheet?

574


write a script to verify links on any web page by using descriptive method by creating a description object (give a filter condition only link) ... need to verify expected like name by reading

1497


How to open a new test using quicktest professional (qtp)?

537


how interviews will be on QTP?

1527


Hybrid framework supports Descriptive programming. Is it true?

662


How many types of parameters are there?

549


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1685


Discuss quicktest professional environment?

595


In qtp, how you can remove the spaces from string?

555