example-date format is 01-jan-09 in QTP.How to convert this
format to 01-01-09?
Answer Posted / harish
val = "01-jan-09"
Conv_Val = cdate(val)
msgbox Conv_Val
newvalue = replace(Conv_Val,"/","-")
values = split(replace(newvalue,right(newvalue,4),right(newvalue,2)),"-")
for i = 0 to ubound (values)
if Len(values(i)) <2 then
temp = temp & "0" & values(i) & "-"
Else
temp = temp & values(i)
End If
Next
msgbox temp
'Result : "01-01-09"
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by iteration?
Hi, Can anyone please tell me how to connect the QC with QTP using QTP script? Thanks in advance
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
How to perform cross platform testing and cross browser testing using qtp? Can you explain giving some example?
How to get the particular property value?
when to start the automation?
What r the different filters in defect in quality center
Explain data driven framework?
in a web page hoe to check the dynamic links that rechabging with out using regular expressions
Explain process of smart Identification in QTP?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
If a button named "CLICK" is recorded in low level recording mode , what will be the values stored for "name" property of that button in object repository ?
How will you handle java tree in qtp?
i have a doubt can anyone tell me where are scripts stored while using QTP.Tell me the exact procedure takes place in real time?like how we call scripts how to proceed after writing scripts?how scripts are executed etc?i heard some use Qc whether others dont use.so tell me whole procedure for both the things it will be a very big help.as i have interview i want to have whole idea on this.its very urgent.