Plz write the code, function will take the parameter as
month number, i.e., numerical value, but it returns the
last day of the month in string (weekday).
example: input: function parameter: 3(march)
output: thursday
Answer Posted / lakshmi
Function MonthLastDayName(M,Y)
For i=31 to 28 step -1
MyDate=i&"-"&M&"-"&Y
if IsDate(MyDate)=true then
j=Weekday(MyDate)
Select case J
Case 1
Msgbox "Sunday"
Case 2
MsgBox "Monday"
Case 3
Msgbox "Tuesday"
Case 4
Msgbox "Wednesday"
Case 5
Msgbox "Thursday"
Case 6
Msgbox "Friday"
Case 7
Msgbox "Saturday"
End Select
Exit for
End if
Next
End Function
MonthLastDayName 9,2011
Plesae let me know if u hav any simplest answer than this.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
I want to know can we integrate visual source safe tool with QTP and QC for our version controlling process? WE know QTP and QC 10.0 version is having the version control inbuilt in it but I want to know the merits and demerits of the inbuilt version control tool and the visual source safe tool using QTP and QC.
I have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
Is virtual object supported in low level recording mode?
What are the properties you would use for identifying a browser and page when using descriptive programming?
How can you pass value one action to another action?
how to test Web application using QTP software
Can anyone help.i need total excelsheet operations,shortcuts in testing environment from starting onwards....
Describe how Smart Identification is used
Suppose you are using shared objects repository in your test and you want to split your present action? At that time shared object repository is single or it’s also splits?
How to handle dynamic objects in quicktest professional (qtp)?
What is the latest version of qtp?
can any boby tell me what is method or steps to connect the remote desk top by using QTP 9.2 version?
Is QTP Supports SWT applications? If yes, can you write a sample script for opening a new package in eclipse.
What is the file extension of the code file and object repository file in QTP?
What is the framework your company is following. What is the reason. Explain why key word driven frame work is chosen.