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
Give me some real time point of way where exactly we can conduct audits?
Client is able to provide budget..he want you to choose the automation tool for the web application? which one you will select ? QTP or Selenium ? what are the reasons?
i am a begnner so am learning Error handling :tried using Recovery manager didnt work i want to be able to handle errors , e.g. if while running the test the folwoing does not show up then how can i use the If then else and goto next step in the test, as in many scenarios it does not show up Browser("The Shopping Channel -").Page("The Shopping Channel -_8").Image("easy pay").Click
How to define array in qtp?
How you can make an action as re-usable action?
How can i initiate the objects to find uniquely in OR
Hi am New to Automation Testing , any one can you help me what are the basic questiion are asked an interview?
What is the difference in the global and action sheet in qtp?
How can we use the "CreateObject("Shell.Application")" in QTP and what is the definition and purpose of it?
I recorded a Web App with a Oracle backend using QTP 9.5 and for some reason the scripts don't play back> What am I missing at this point. I recorded the same Apps under Sybase and they work great. This is Oracle 10g. Why won't my scripts play back.
On the website, the protocol has been changed https: to https what you will do? Tell me your approach?
How to do the scripting. Is there any inbuilt functions in qtp as in qtp-s. What's the difference between them? How to handle script issues?
Explain how Does Run time data (Parameterization) is handled in QTP?
Diff b/w Health care domain and Banking Domain?
Hello, Is there any way to send the test results in html format (or any other) by email using outlook after the test run ends? thank you in advance