example-date format is 01-jan-09 in QTP.How to convert this
format to 01-01-09?

Answer Posted / kiran kallepu

please find below code
givenDate = "01-jan-09"
DD = Day(givenDate)
msgbox DD
MM= month(givenDate)
msgbox MM
YY=year(givenDate)
msgbox YY

sysdate=DD&"-"&MM&"-"&YY
msgbox sysdate

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the ways you can synchronize?

585


Generic function to search for the unique link in webtable and click on it

2487


Describe how Smart Identification is used

1700


What are the types of object repositories? Which one is you using?

621


What is quick test pro? What is a quick test professional?

554






how did u use automating testing tools in ur job?

1487


How did you use regular expressions in QTP and also in WR?

2165


what is test scheduleling?

2015


What is the default add-ins in qtp?

556


Hi, I am supposed to automate mainframe application through qtp. I do not know how to start abt it. Can you plz help me in first initializing the process or do you anybody have a guide book or a link which guides me through the process of automating the mainframe applications and things involved in it.

6660


what function you write to do database testing with the help of qtp?

1359


How to call a test from another test?

682


What is the process of synchronizing qtp and aut?

568


Can you brief the hurdles you faced during Automation testing?

577


In the application that I'm testing is having a WYSIWIYG editor.QTP is recording editor's body as web element. I want to add some data to this web Element at run time. The problem is that I cant find a method to add contents to this web Element. Can any one come up with an answer for this. Thankx.

1445