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

Are Shared ORs read-only?

864


Can you write a script to check if the folder exists or not?

743


What are the ways you can synchronize?

786


Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.

3287


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?

1501


What is the difference between call to existing action and copy of an action?

824


How can you write the scripts that operate on different objects depending on run-time information?

2360


How many add-ins comes by default with quicktest professional (qtp)?

775


How can I change object description or check point values in qtp?

771


What is expert view and keyword view?

872


Hi All, I have QTP installed on my machine but the application under test (AUT) is on remote desktop.My scenarios is like that,it should contain following steps. 1)Automatically it should click on start and then on remote desktop connection. 2)it should enter the IP address and then connect to remote desktop. 3)and then it should be able to record the application in remote machine and then run it also. Can somebody tell me how to record the application which is in remote machine.

1744


How can I use Call dlls in QTP ?

2048


ACTUALLY I AM WORKING IN THE DISTRIBUTION DOMAIN.MY COMPANY IS PROVIDING DISTRIBUTION SOFTWARE FOR PHARMA AND FMCG DISTRIBUTORS.HERE I AM USING QTP 9.2.HERE IN MY APPLICATION WHILE RECORDING ONE WINDOW APPEARS.IN THAT I CAN SELECT THE ITEM OR NO NEED TO SELECT.BUT WHILE RUNNING THE SAME SCRIPT THE WINDOW MAY NOT APPEAR OR APPEAR.HOW TO WRITE SCRIPT FOR THIS

1735


QTP script is not working on other's machine..

1741


Why we load add-ins in qtp?

853