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 / 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 |
How to run a test using quicktest professional (qtp)?
the develeper not accepter your defect what status is that ?
There are some links on the page,count and click those links and check the text on the page displayed on clicking the link.write script for this scenario.
My Project is HOSPITAL CONTROL SYSTEM. In this MY testing modules are In-patient and Out-patient. plz explain those modules. i.e. How explain to Interviewer. with full details also . Waht types of bugs we can fond ? NOTE : IT is a web project plz urgent.
How to record objects of Windows taskbar
how to idetfy which test cases are automated?who will deside that plz tell me
What is meant by Environmental variables?2 types r there know…can u pls explain clearly?
How to create an Action Template?
Hi everybody, Can anybody tell me that how the QTP frameworks are implemented . I wanted to know with examples . Thanks in advance
How you used DDT in QTP?
Where virtual objects stores results?
What is clean sweep?