is it possible to change the date format like MM/DD/YY
into DD/MM?YY through script in QTP
Answers were Sorted based on User's Feedback
Answer / m kumar
Date function in qtp displays current system date as
MM/DD/YY,So change this in to DD/MM?YY format below is the
process
Strday = day(date)
Strmonth = month(date)
Stryear = year(date)
Newformat = Strday&"/"&Strmonth&"?"&Stryear
| Is This Answer Correct ? | 21 Yes | 0 No |
Answer / guru
DD = Day(now)
If Len(DD) = 1 then
DD = "0" & DD
End If
MM = Month(now)
If Len(MM) = 1 then
MM = "0" & MM
End If
YY = Year(now)
YY = right(YY,2)
Date_Format = DD & "/" & MM & "?" & YY
| Is This Answer Correct ? | 9 Yes | 0 No |
Answer / lak
Strday = day(date)
Strmonth = month(date)
Stryear = right(year(date),2)
Newformat = Strday&"/"&Strmonth&"?"&Stryear
msgbox Newformat
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / maya
Dim years
years=inputbox("enter year as MM/DD/YY format")
x=mid(years,4,2)
msgbox x
y=left(years,2)
msgbox y
z=right(years,2)
msgbox x+"/"+y+"/"+z
| Is This Answer Correct ? | 4 Yes | 1 No |
Answer / snehasis
oldFormate = "MM/DD/YY"
array=split(oldFormate,/)
newFormate = array(1)+array(0)+array(2)
| Is This Answer Correct ? | 9 Yes | 8 No |
What is iteration? How it is related to Test Results in QTP
3 Answers Virinchi Technologies,
what is stlc and its contents?
HOW TO AUTOMATE CAPCHA IMAGES while creating Gmail account
what we do after completion of functional and regression testing
In what situations QTP will not recognize the Objects?
How to handle Recovery scenario in QTP. give detailed explanation about recovery scenario.
IF application is a Java-based application means 2 0r 3 tier application. How the script will be in QTP. pls kindly give some sample script.
What is action? How many types of actions are there in qtp?
Suppose I want fail that check point? How can you do that?
Reverse a string keeping the words in the string as it is. E.G. "Quick Test Professional" O/P "Professional Test Quick"
what is meant by function library?Public and private functions in function library? if private functions are applicable for only for the particular test means then y we have to add those to function library?
Explain how Selenium is different from UFT?