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
Hi we are running tests remotely from quality center and pushing tests into qtp boxes remotely, and it does execution but while uploading results back into quality center it hangs in qtp box.If any one come across similar problem, please send me details how to handle this. Thanks kris
What are the recording modes in wave event?
What is QTP and the use of QTP in TD?
what is description object?
I created 3 actions in test suppose I want to run action 1 in single time, action 2 is 4 time what I do?
What are the ordinal identifiers in web page?
how to test Web application using QTP software
Discuss quicktest professional environment?
What is text check point and text area check point?
what is clean sweep?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
Explain the types of properties that quick test learns while recording?
Do you know how to connect database? Can you tell me the procedures?
Should have experience in framework means?
What is the use of sendkeys and what are send keys