Automation testing QTP with VB Script functions Interview questions


Total available count: 68
Subject - Software Testing
Subsubject - Automation testing QTP with VB Script functions

WeekdayFunction_Weekday?

Weekday function returns a whole number representing the day of the week. 

Syntax: Weekday(date, [firstdayofweek])

Arguments:
date: Any expression that can represent a date. If date contains Null, Null is returned.
firstdayofweek: A constant that specifies the first day of the week. If omitted, vbSunday is assumed.

Example: 

Print  Weekday("November 03, 2010")                                  
output:4  (which means its a Wednesday)


 




Next 5 interview question(s)

1
WeekdayNameFunction?
2
YearFunction?
3
HourFunction?
4
Minute Function?
5
SecondFunction?

Comments