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

Answer Posted / snehasis

oldFormate = "MM/DD/YY"
array=split(oldFormate,/)
newFormate = array(1)+array(0)+array(2)

Is This Answer Correct ?    9 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you directly trigger javascript in a test?

1668


Explain calling sub procedure.

832


What ate the Technologies supported by QTP?

902


Did the scripts need lot of maintenance? If yes, why?

3543


What are the advantages of parameterization ?

806


Hi, While recording a Jave based web application, its recording all my actions and the objects.And I have 5 WebEdit objects on the page and all are recorded. But while execution, at the 2 WebEdit object, its entering the value into the object (Its making a call to the AJAX, matching the value), when the control get out of this object the value is erased or cleared. Could anyone please help. I have recoreded 5 more scenarios where WebEdit is in the picture on different webpages and all are working fine. Here is my Script: Browser("Sign In").Page("Matching Workbench_3").WebEdit ("locationLookup").Set "0320 - SEATTLE-KM" Browser("Sign In").Page("Matching Workbench_3").WebEdit ("supplierNameLookup").Set "TRAMMO PETROLEUM INC" *** SupplierNameLookup is the object, which is haing an issue. And also I was using the SendString function, but it didnt work.

1982


What is object spy in quicktest professional (qtp)?

726


How to handle the exceptions using the recovery scenario manager in qtp?

778


i can done the project with QTP in that time i can say how many members in my team size?

1623


Define Canvas view of UFT?

791


Your roles and responsibilities and daily tasks? (As automation tester)

2804


What is quicktest professional window?

759


I am getting the "test object property" Description properties "toolkit class" value By using "gettoproperty" in run time But my problem is how to get Ordinal Identyfier's type and value Type is index, value is 0 How can i keep this values in to required place How can i get these values in runtime I have to insert these "index" and "value" into another area Is there any script for this like "gettoproperties","Getroproperties" If anybody knows,please help me .

1951


Want to verify notepad reports using QTP framework or any other BV script method. Can anyone share the method to achieve it? Eg. Person Name is the header and the actual name is John then how can we verify weather person name is John

2381


What are the flaws in water fall model and how to overcome it?

786